You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Anton Marchenkov <ma...@handybank.ru> on 2009/04/16 16:04:35 UTC
How to pass multiple parameters to the next page
Hello!
What is the best way to pass multiple parameters to the next page on
OnSubmit event in Tapestry 5.1?
--
Best Regards,
Anton Marchenkov.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How to pass multiple parameters to the next page
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, Apr 16, 2009 at 11:04 AM, Anton Marchenkov <ma...@handybank.ru> wrote:
> Hello!
>
> What is the best way to pass multiple parameters to the next page on
> OnSubmit event in Tapestry 5.1?
One way to do it:
class Page1 {
@InjectPage
private Page2 page2;
public Object onSubmit() {
page2.setParameter1(parameter1value);
page2.setParameter2(parameter2value);
...
return page2;
}
}
class Page2 {
@Persist("flash")
private Parameter1 parameter1;
@Persist("flash")
private Parameter2 parameter2;
....
// setters for parameter1, parameter2, ...
}
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org