Trying to understand if the following is possible, and if not why.

Say I have a component Foo that defines an action link on a zone rendered by
component Bar.

Foo.tml:
...
<t:actionlink t:id="GoUpdateSomething" zone="somethingToUpdate">Go Update
Somthing</t:actionlink>
...

Bar.tml:
...
<t:zone t:id="somethingToUpdate">${value}</t:zone>
...

And in Foo.java:

@Property private int value = 0;
@InjectComponent Zone somethingToUpdate;
...
public Object onActionFromDoSomething {
        value++;
        return somethingToUpdate.getBody();
}

I receive an error noting that Foo does not define a component Bar.

My understanding is that neither components Foo nor Bar have any knowledge
of components
rendered within one another (the attribute t:id) is not global.  I therefore
infer that 
component communication occurs only when they coincide within the same
immediate container
and one component is child to the other.  Is this correct?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Triggering-zone-updates-external-to-the-event-trigger-s-container-tp4380935p4380935.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to