I only know how how to populate zones with form submits or event links. I'm sure you can take a look at the eventlink component and copy / paste.
Then all you need to do specify the zone to populate and return: - A class object for your component - The name (String) of the component - A component instance (use @InjectComponent) - A block (a set of components defined in your template) Here's a block example with an actionlink: template: ------------ <t:block t:id="myBlock"> <!-- this does not show on page load, it is simply a placeholder for tapestry --> <t:component1 /> <t:component2 /> </t:block> <t:zone id="myZone"> </t:zone> <t:actionlink t:id="myLink" t:zone="myZone">click me!</t:actionlink> java ----- public class Test { @Inject private Block myBlock; @OnEvent(component="myLink", value="action") private Block actionFromMyLink() { return myBlock; } } Cheers, Lance. 2008/6/30 Denis McCarthy <[EMAIL PROTECTED]>: > Hi, > I'm working on a somewhat complex page at the moment. This page > consists of several input boxes that users > fill in. I've got various onblur AJAX mixins that fire on this page > when fields are filled in by a user. Currently, based > on the values that users put into these text boxes, other text boxes > and drop down select lists are either shown > or hidden (this is done by passing simple JSON back to the page in the > AJAX response to these blur events) > > Ideally, I'd like not to have these optional fields just hidden, but > instead for the optional field to be entirely absent > from the html markup when it's not needed, and only present when data > entered by the user in a different field > mandates it. Is this possible in T5? I don't think it is (because I > think that a field needs to be present in the tml > at page load time for the component in question to be bound to the T5 > page class), but it would be great if > it was, as it would make the page considerably lighter size wise for > most of my users. > Thanks > Denis > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >