You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/05/11 09:31:48 UTC

[jira] [Commented] (WICKET-4553) BlobImageResource used on a Bookmarkable page generates invalid URL

    [ https://issues.apache.org/jira/browse/WICKET-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273102#comment-13273102 ] 

Martin Grigorov commented on WICKET-4553:
-----------------------------------------

Can you attach a quickstart application please?
                
> 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