You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "David M. (JIRA)" <ji...@apache.org> on 2017/05/31 13:31:04 UTC

[jira] [Created] (WICKET-6387) ModalWindow PageReference broken

David M. created WICKET-6387:
--------------------------------

             Summary: ModalWindow PageReference broken
                 Key: WICKET-6387
                 URL: https://issues.apache.org/jira/browse/WICKET-6387
             Project: Wicket
          Issue Type: Bug
          Components: wicket, wicket-extensions
    Affects Versions: 8.0.0-M6
         Environment: Jetty 9.4.5.v20170502
            Reporter: David M.
         Attachments: modal_sample.tgz

When using ModalWindow in combination with PageReference does not work since version 8.0.0-M6.

I tried 8.0.0-M5 as well without getting this issue.

Using the example code of wicket-examples, the call {{(ModalWindowPage)modalWindowPage.getPage()}} will always return null instead of the page.

The PageReference object contains a valid pageId, but the PageManager cannot find the object referenced by this ID.

I attached an example project to show this issue
(use mvn clean compile jetty:run to start local webserver on 8080).

I'm also pretty sure that this problem will also occur with the wicket-example code. 
My example is just a stripped version of the wicket-examples modal window sample which will throw an IllegalArgumentException when getPage() is null.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)