Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4553

BlobImageResource used on a Bookmarkable page generates invalid URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 6.0.0-beta1
    • None
    • site
    • None
    • JBoss 7

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            alex.alvarez Alex Alvarez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: