On Thu, Apr 16, 2009 at 11:04 AM, Anton Marchenkov <m...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to