[
https://issues.apache.org/jira/browse/WICKET-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274621#comment-13274621
]
Alex Alvarez commented on WICKET-4553:
--------------------------------------
was unable to replicate in a standalone project. Managed to work around the
issue by checking the generated URL and adding an additional dot ( going from
./ to ../ ) to the generated URL if needed.
> BlobImageResource used on a Bookmarkable page generates invalid URL
> -------------------------------------------------------------------
>
> Key: WICKET-4553
> URL: https://issues.apache.org/jira/browse/WICKET-4553
> Project: Wicket
> Issue Type: Bug
> Components: site
> Affects Versions: 6.0.0-beta1
> Environment: JBoss 7
> Reporter: Alex Alvarez
>
> I replicated the example in
> https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I
> noticed that the generated URL when using:
> ResourceReference imageResource = new
> SharedResourceReference("documentResource");
> String url=RequestCycle.get().urlFor(imageResource, new
> PageParameters())+"?id="+"1";
> on a bookmarkable page causes a "java.lang.ClassNotFoundException: resource"
> Generated URL:
> ./resource/org.apache.wicket.Application/documentResource?id=1
> added to a bookmarkable page:
> http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1
> on a non-bookmarkable page:
> http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira