On Tue, 20 May 2014 04:28:20 -0300, John <j...@quivinco.com> wrote:
What approach should be used to allow the inner component to change a
parent property?
Besides using the Environment service, another approach is to declare
component parameter in the inner component using the prop binding (which
is the default). prop is bidirectional. Just think of the value parameter
of loop.
For example:
Inner.java:
@Parameter
private SomeType someParameter;
Outer.java:
@Property
private SomeType someParameterInOuter;
<t:inner someParameter="someParameterInOuter"/>
Any time, in Outer.java, you do a someParameterInOuter = ...;, you're also
changing the value of someParameter in Inner.java. Of course, this would
only inside a request.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org