Hi Anton,
I've used class ContextImage in a situation like this, but folder
containing images must be inside WebContent folder, at the same level
of WEB-INF folder. In this scenario you should be able to access your
images writing something like this
add(new ContextImage("icon", "images/imageFileName.jpg"));
where 'images' is the folder containing images.
Hello,
I've folder of images such as $PROJECT_ROOT/images/
and in
$PROJECT_ROOT/src/main/java/org/myproject/myprofile/MyProfilePage.java:
package org.myproject.myprofile;
public class MyProfilePage extends WebPage {
...
public MyProfilePage() {
...
class MyProfileForm extends Form {
...
// user.getImagePath() return for example images/1
add(new Image("myimage", user.getImagePath()));
but it's create 404-link:
http://localhost:8081/myproject/resources/org.myproject.myprofile.MyProfilePage/images/1_de_DE
What is the best way for this, if I need session-binded images?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]