On Fri, 21 Oct 2011 10:52:42 -0200, captain_rhino <graeme.kitc...@axa-travel-insurance.com> wrote:

Thankls for your advice.

I can see how you would capture request information using
ActivationRequestParameter but cannot see how in a page context you would
add parameters in the same way that addparameter works on a link?

        Link link =
linkSource.createPageRenderLinkWithContext(PolicySignin.class);
        link.addParameter("x", "123");
        link.addParameter("y", "123");
        return link;

The PolicySignin needs to have the fields annotated with @ActivationRequestParameter.

@InjectPage
private PolicySignin policySignin;

...
policySignin.setXXX(...);
policySignin.setYYY(...);

return policySignin;

Example not tested. I didn't even use @ActivationRequestParameter before. :)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to