Yes there was an image....

I use the tree component found in 

http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourOwnComponents


In it, there is a javascript in which two icons are used the tipical + and -
icons to represent opened and closed folders, those icons are aded on the
window.onload event, it creates in img object and ataches it's src to a
string holding the path to images (in my case images/)


In another page wich also uses the tree component the
baseUri="http//localhost:8080/app/testtree"
and the generated src="http//localhost:8080/app/images/dhtmlgoodies.gif"

and indeed my images are in webapp/images      so everithing goes fine.


On the new page Im building the
baseUri="http//localhost:8080/app/admin/page/0"
and the generated source is
src="http//localhost:8080/app/admin/page/images/dhtmlgoodies.gif

So the problem seems not to be related at all to the onActivate method but
rather to jscript, in the first case as my page was just one level above the
root level, the constructed src matched the image, but if the page is
further levels depth the src only removes the last one and tapestry
interprets it as a call to the correct page with a weird context.

How to solve it? don't know I'll try tomorrow!
thanks


 













-- 
View this message in context: 
http://www.nabble.com/T5-OnActivate-tp17583640p17590070.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to