Alex Alvarez created WICKET-4553:
------------------------------------

             Summary: 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 on 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

        

Reply via email to