I have form with two submit buttons and select field with submit() in its onChange event..
<t:submit t:id="report" t:value="Run Report" /><br/> <t:submit t:id="clear" t:value="Clear"/> <t:select t:id="group" model="groupList" blankOption="never" onChange="javascript:submit()" /> in my java code I have this: private boolean report; // not @Persist private boolean clear; // not @Persist public void onSelectedFromReport(){report = true;} public void onSelectedFromClear(){clear = true;} public Object onSuccess() { if(report) { ................ } else if(clear) { ................... } else // Executes the code for change to select field { ...................... } return null; } The first time I use the page I can change the select field and sense I don't click the report or clear buttons the code for the change executes in the onSuccess procedure. I then click the Report button and the onSelectedFromReport event is fired and the code for the report in the onSuccess executes. After the report is done I need to change the select field and run another report. But this time when I change the select field the onSelectedFromReport event is fired and the same report is generated again. I have be working on this for some time and can't figurer out why this is happening. Michael Williamson Analyst Sr Applications Developer Phone: 816/997-5994 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org