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: [email protected]
For additional commands, e-mail: [email protected]