This is a simple example showing ajax with and without forms. Hope it helps!
--Test.tml-- <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <head><title>Ajax test</title></head> <body> <t:block t:id="someBlock"> Boring block </t:block> <t:block t:id="dynamicBlock"> fun dynamic block! <br /> date on server ${date} <br /> message: ${message} </t:block> <t:actionlink t:id="theLink" t:zone="zoneToUpdate">click me!</t:actionlink> <t:form t:id="theForm" t:zone="zoneToUpdate"> <t:textfield t:value="message" /> <br /> <t:submit /> </t:form> <hr/> <t:zone t:id="zoneToUpdate"> Content before update </t:zone> </body> </html> --Test.java-- public class Test { @Inject private Block someBlock; @Inject private Block dynamicBlock; @Property private String message; public String getDate() { return new Date().toString(); } @OnEvent(component="theLink", value="action") private Block actionFromTheLink() { return someBlock; } @OnEvent(component="theForm", value="success") private Block successFromTheForm() { return dynamicBlock; } } 2008/3/11, Janko Muzykant <[EMAIL PROTECTED]>: > > > Tapestry's page mentions about zones and update-divs but i'm not able to > find > even one example how to use them. is there anyone who successfully tried > to > use these features? > > cheers, > m. > > > -- > View this message in context: > http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- /ted