On Wed, 07 Apr 2010 09:12:10 -0300, Pierce T. Wetter III <pie...@paceap.com> wrote:

As a new user of tapestry, loop actually bit me because I assumed it did this already and was surprised in my event handlers when my value binding was null.
      <a class="fancy" t:type="eventlink" event="select"><t:body /></a>

Why not passing the current object as the context of the EventLink instead?

<a class="fancy" t:type="eventlink" event="select" t:context="value.id"><t:body /></a>

public Object onSelect(IdType id) {
        ...
}

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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