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

Martin Grigorov commented on WICKET-3554:
-----------------------------------------

So you bring the page id in the request parameters and you prefer to call: 

page = new PageReference(pageIdInt).getPage()

instead of

page = getSession().getPageManager().getPage(pageIdInt)
?

If there is no page with such id in the current session then expect 
PageExpiredException instead of null. I'll document this.
                
> Constructor of org.apache.wicket.PageReference should be public
> ---------------------------------------------------------------
>
>                 Key: WICKET-3554
>                 URL: https://issues.apache.org/jira/browse/WICKET-3554
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4.15
>            Reporter: Thomas Götz
>            Priority: Minor
>
> The construcor of PageReference is not accessible (no qualifier, proteced). 
> Is this for a reason? As far as I can see, a public qualifier would be nice 
> as I rather often created an own class with a similar implementation (because 
> I could not create an instance of PageReference).

--
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