Hi Have you used @Persist on "message" field ?.
Another way would be to use onActivate/onPassivate if possible. regards Taha On Thu, Apr 5, 2012 at 4:26 PM, resign <sergejb...@yahoo.de> wrote: > Hi, > > T5.2.6 > > TML: > ... > <t:form zone = "resultZone"> > FIRST Submit: <t:submit t:id="FIRST"></t:submit> > <br/><br/> > SECOND Submit: <t:submit t:id="SECOND"></t:submit> > </t:form> > > <t:zone t:id="resultZone"> > ${message} > </t:zone> > ... > > And Java File > ... > void onSelectedFromFIRST(){ > isFIRST = true; > } > > void onSelectedFromSECOND(){ > isFIRST = false; > } > > Object onSuccess(){ > if (isFIRST){ > message = "---------FIRST------"; > } > else{ > message = "-------SECOND-------"; > } > return resultZone.getBody(); > } > > .... > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Multiple-Submits-and-Zone-tp5619561p5620072.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- Regards Taha Hafeez Siddiqi (tawus) http://tawus.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org