On Wed, 22 Dec 2010 13:57:38 -0200, Rich M <rich...@moremagic.com> wrote:

Thanks for the clarifications, Thiago. Helpful as always.

You're welcome!

At first I didn't see a nice way of actually feeding the values from the HTML form back into the event method for the EventLink though. creatEventLink seems to assume I know my context from the Component class, but the context is only ever known to an HTML element after some Javascript has its way. But then I realized I can save the form input Element I made during rendering with the MarkupWriter (last concept you mentioned) with Persist. Then in the event method read the value attribute back.

Another option is to add request parameters instead of using the activation context, something that was made even easier with the new @RequestParameter and @ActivationRequestParameter annotations in Tapestry 5.2.

--
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