You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rorschach <ca...@yahoo.com> on 2008/11/14 04:37:06 UTC
How do you initialize contents of a Zone when the page is loaded?
I'm new to Tapestry, and have just gone through the recommended basic
Tapestry 5 tutorials. Currently playing around with the T5 Ajax support and
at this point, I understand how to refresh a zone after clicking on an
actionLink. However, I can't seem to find any examples on how to initialize
the contents of a zone when the page is loaded. Could anyone point me in the
right direction? Thanks.
--
View this message in context: http://www.nabble.com/How-do-you-initialize-contents-of-a-Zone-when-the-page-is-loaded--tp20494166p20494166.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How do you initialize contents of a Zone when the page is loaded?
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Fri, 14 Nov 2008 00:37:06 -0300, Rorschach <ca...@yahoo.com>
escreveu:
> I'm new to Tapestry, and have just gone through the recommended basic
> Tapestry 5 tutorials. Currently playing around with the T5 Ajax support
> and at this point, I understand how to refresh a zone after clicking on
> an
> actionLink. However, I can't seem to find any examples on how to
> initialize the contents of a zone when the page is loaded. Could anyone
> point me in the right direction? Thanks.
Anything inside the Zone component will be rendered when the page is
rendered. The *AJAX* Zone content filling just happens when an ActionLink,
EventLink of Form event is triggered.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How do you initialize contents of a Zone when the page is
loaded?
Posted by shymon <sh...@poczta.onet.pl>.
Your action link event handler probably returns Block.
So you can use delegate component:
<t:zone t:id="myZone" t:visible="literal:true">
<t:delegate to="myBlock"/>
</t:zone>
<t:block t:id="myBlock">
...
</t:zone>
shymon
--
View this message in context: http://www.nabble.com/How-do-you-initialize-contents-of-a-Zone-when-the-page-is-loaded--tp20494166p20497787.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org