java - How to add static resources to vaadin -



java - How to add static resources to vaadin -

i running vaadin application , have css files reference images using "url()" syntax.

the images not available , on server side error:

rejecting published file request file has not been published

i have tried putting them everywhere (web-inf, web-inf/classes, vaadin, vaadin/themes/.., etc) remain unaccessible.

how can add together static images vaadin application can accessed css?

update

note images need accessible css in form of:

.mycssclass { background: url(path/to/image.png); }

you should set them vaadin/themes/mytheme/images/ , set theme name mytheme. way how set theme depends on vaadin version. resources accessible that:

class="lang-java prettyprint-override">new themeresource("images/my_image.png");

java vaadin

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -