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

Erik Godding Boye commented on WICKET-3554:
-------------------------------------------

Let me take a step back and try to explain what I am trying to do. ;-)

I want to achieve page navigation more or less as explained in this thread: 
http://apache-wicket.1842946.n4.nabble.com/How-to-get-request-page-in-Wicket-1-5-td3827411.html#a3830270
When the page is used in an non-bookmarkable context, I pass in the reference 
to the referring page using PageReference - as shown in Igors response.
The page reference is stored internally in the page (standard java field), and 
when it is time to go back, I use setResponsePage(pageReference.getPage()).

But I also want to use the page in a bookmarkable context, but because of the 
package-protected constructor in PageReference, there is no way to construct a 
PageReference object from the parameters.
                
> 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