On Thu, 21 Mar 2013 10:31:30 -0300, Volodymyr Khomik <vovka71...@yahoo.de> wrote:

Hello,

Hi!

could somebody help me to resolve this problem:
My pic previes is working just with relative pathes, but I have to use absolute pathes.

Why?

Here is my code:

<ul t:type="any" t:mixins="jquery/sortable">
<t:loop source="selectedExercises" t:elementName="li" value="exercise"
index="exerciseIndex" formState="iteration">
<table class="export" cellspacing="0" id="${exerciseIndex}">
<tr>
<td width="115">
<img class="previewImage" src="${exercise.getPicture()}"
alt="image" /> ...

exercise.getPicture() returns H:/git/.../tapestry/data/reps/Picture.jpg

It returns no message like wrong path.

It's working with data/reps/Picture.jpg

I tried also with file:///H:/git/.../tapestry/data/reps/Picture.jpg but still not working...

Actually, this isn't related to Tapestry at all. This is just about how to reference files in HTML. The easiest solution is to put the images inside the webapp root (src/main/webapp if you use the Maven conventions) and use /path/to/image.jpg (supposing your file is inside src/main/webapp/path/to/webapp).

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to