Em Mon, 17 Aug 2009 20:44:55 -0300, Andrey Larionov <anlario...@gmail.com> escreveu:

By linking i mean next:
When i perform (for example) select action on first component, second
should get selected value and display corresponding changes. But if
one of components is absent, then components should work standalone
without interaction with each other.

You could do that by:

* Having the first component has a non-required parameter that is the linked component * Actions are handled by events. The first component, handling some event, would then invoke methods in the second component to change its state. Components (and pages too) are simple stateful objects, so they can interact with each other just by invoking methods.
* Components (both or just the linked one) is rerendered.

Better explained now? :) Most of the time, doing something in Tapestry is simpler than we think at first.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to