You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pashkin A. (JIRA)" <ji...@apache.org> on 2010/04/23 11:01:50 UTC
[jira] Created: (WICKET-2845) Auto set variables using
PageParameters to Page
Auto set variables using PageParameters to Page
-----------------------------------------------
Key: WICKET-2845
URL: https://issues.apache.org/jira/browse/WICKET-2845
Project: Wicket
Issue Type: Improvement
Components: wicket
Reporter: Pashkin A.
The user has a link (stateless ) like http:/localhost/search?text=test
then wicket go to the Page search like:
public SearchPage extends Page {
public SearchPage(PageParameters par) {
}
}
if you want to get "text" parameter then you need to use PageParameters to get it.
But it is not convenient
I suggest to make
autoset of parameters from URL like Struts has and other frameworks.
I mean the next if
public SearchPage extends Page {
private String text;
public SearchPage() {
}
}
and variable "text" of SearchPage should have already string "test".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WICKET-2845) Auto set variables using
PageParameters to Page
Posted by "Jeremy Thomerson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy Thomerson closed WICKET-2845.
------------------------------------
Assignee: Jeremy Thomerson
Resolution: Won't Fix
You can do this yourself. Just create a component instantiation listener that watches for any components that are pages, does this, and add that listener to your application.
> Auto set variables using PageParameters to Page
> -----------------------------------------------
>
> Key: WICKET-2845
> URL: https://issues.apache.org/jira/browse/WICKET-2845
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Reporter: Pashkin A.
> Assignee: Jeremy Thomerson
> Original Estimate: 30h
> Remaining Estimate: 30h
>
> The user has a link (stateless ) like http:/localhost/search?text=test
> then wicket go to the Page search like:
> public SearchPage extends Page {
> public SearchPage(PageParameters par) {
> }
> }
> if you want to get "text" parameter then you need to use PageParameters to get it.
> But it is not convenient
> I suggest to make
> autoset of parameters from URL like Struts has and other frameworks.
> I mean the next if
> public SearchPage extends Page {
> private String text;
> public SearchPage() {
> }
> }
> and variable "text" of SearchPage should have already string "test".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.