You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/03/24 12:06:05 UTC
[jira] [Commented] (WICKET-3554) Constructor of
org.apache.wicket.PageReference should be public
[ https://issues.apache.org/jira/browse/WICKET-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010630#comment-13010630 ]
Martin Grigorov commented on WICKET-3554:
-----------------------------------------
Why do you need to create it manually ?
The idea is that you have a Page instance and you can pass a reference to it to another page by using: page.getPageReference().
Having public constructor you may create a reference to non-existing page.
> 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-core
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira