Indeed, that would do the trick just nicely. I was thinking way too complicated, thanks Igor.

Uli

On 27.07.2009 22:29 schrieb Igor Drobiazko:
I'm not sure I understand completely what you are trying to do but why don't
you publish an event inside the handler method of the component. This event
can be handled in the handler method of the containing page by returning the
zone's body.

On Mon, Jul 27, 2009 at 8:41 PM, Ulrich Stärk <u...@spielviel.de> wrote:

That's not what I was asking for. Maybe I was a bit unclear. Triggering the
update itself is not the problem but returning the correct content for
updating the zone from the event handler method of the component. The zone
should update itself with it's own content and that's the problem. Inside
the component I don't have direct access to the Zone on the page. Passing
the Zone as a parameter to the component works but calling getBody() on it
returns nothing it seems. I now have to use ComponentSource to locate the
zone in the page and then I can return it's body from the event handler
mehtod. That works but is ugly.

Uli

On 27.07.2009 19:54 schrieb Thiago H. de Paula Figueiredo:

Em Mon, 27 Jul 2009 10:20:08 -0300, Ulrich Stärk <u...@spielviel.de>
escreveu:

 Hi List,
Hi!

 How can I update a zone on a page from within a component placed on that
page? I can successfully pass the zone's id to the enclosed component but I
can't return the zone's body in any of the components handler methods. How
can I get a handle on the zone?

In https://issues.apache.org/jira/browse/TAP5-569, Fernando Padilla
posted some very useful Javascript code that I've used successfully in a
project.


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





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

Reply via email to