that is strange yes
It smells like that jsessionid should be reversed... the href should have a jsession id and a img src not. (at least a static resource not a completely dynamic one is session bound)




Gili wrote:


Another thing I noticed. The URL generated for <img> tags contains a "jsessionid" whereas the URL generated for <a href> does not. Example:


<a href="/DesktopBeautifierServer/Main/resources/com.be.desktopbeautifier.web.main.Page/sunset/category.jpg" class="screenshotCategory"> <img width="239" height="179" src="/DesktopBeautifierServer/Main/resources/com.be.desktopbeautifier.web.main.Page/sunset/thumbnails/category_en_US.jpg;jsessionid=80241308FFC6D56F901B28826468255C">


Smells like a bug to me. What do you think?

Gili

Gili wrote:


If you hit http://www.desktopbeautifier.com/ you will notice you can view the images just fine but once you click on any of them you get a broken link. This code used to work just fine a few weeks back and I don't understand why it is suddenly broken. In my Java file I have:


ResourceLink sunsetCategoryLarge = new ResourceLink("sunsetCategoryLarge", new StaticImageResourceReference(getClass(), "sunset/category.jpg"));
add(sunsetCategoryLarge);


which is meant to refer to "sunset/category.jpg" relative to the Path of the current Page. At runtime I see this generates the path "/Main/resources/com.be.desktopbeautifier.web.main.Page/sunset/category.jpg" in the rendered HTML.

    Does anyone have any idea why this generates a broken link?

Thanks,
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to