Id isn't a formal parameter of Any - so providing it forces @Any to render tags.
Without it there are no tags / markup rendered at all - thus no client side elements to find and update in an ajax request. On 8/19/07, Geoff Callender <[EMAIL PROTECTED]> wrote: > Is the basic Ajax example in the doco missing something (http:// > tapestry.apache.org/tapestry4.1/ajax/basics.html)? > > The example has this: > > <a jwcid="@DirectLink" listener="listener:setTime" > updateComponents="time">Refresh time</a> > <div jwcid="[EMAIL PROTECTED]" value="ognl:time" renderTag="true"/> > > which rendered as: > > <div>Sun Aug 19 21:29:00 EST 2007</div> > > and it wouldn't update the time. It seems updateComponents must > reference an id, so I tried adding an id explicitly: > > <div jwcid="[EMAIL PROTECTED]" value="ognl:time" renderTag="true" > id="time"/> > > which rendered as: > > <div id="time">Sun Aug 19 21:29:00 EST 2007</div> > > and it started working! I have to admit, I was expecting that > @Insert would render an id without my help, taking the name "time" > from jwcid="[EMAIL PROTECTED]". > > So, is the example wrong, or is @Insert misbehaving, or is my > environment misbehaving? > > Geoff -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]