Gili wrote:

Hi,

I've got an Image component and during rendering time, I want to get its href on server-side. What happens is that the Image is backed up by a dynamic image, it gets assigned a unique static filename during render time and I need to refer to that path. I tried Image.getResourcePath() but it only returns the filename whereas the href generated for the Image component contains a fully-qualified path relative to the root of the domain. I expect the two to be identical.

why do you need the ref? see examples on images. this is generally taken care of for you.


Secondly, when I try hitting the URLs as specified by the Image, the files don't seem to exist and I get a HTTP 404 error. I am pretty sure I must be doing something wrong because the Images example code worked the last time I checked. Any ideas what it could be?

check web.xml pattern. you need to let <appname>/* pass through and not just <appname>



Gili


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to