i want to enable/disable a button on clicking a checkbox in the screen. i am trying the below code Snippet.
HTML template code snippet <tr jwcid="@For" source="ognl:lists" index="ognl:listIndex" value="ognl:listData"> <td align="left"> <form jwcid="@Form" style="margin:0px;padding:0px;"> </form> </td> </tr> Java code snippet @EventListener(events = "onclick", targets = {"checkbox"}) public void updateComponents(IRequestCycle cycle, BrowserEvent event) { cycle.getResponseBuilder().updateComponent("button1"); } Issue 1: Eventlistener is not called for last checkbox and so button is not enabled. Issue 2: on clicking 2nd or subsequent checkboxes in the UI screen, Button is enabled/disabled as expected. However AJAX requests sent is equivalent to the no of checkboxes(or rows) in the screen, which cause performance issues. Note : On clicking 1st checkbox, buttons are enabled/disabled as expected with just 1 Ajax request. On further analysis found that problem is with DOJO generated Java scripts in tapestry 4.1.3, For 4th checkbox, Forms of checkbox 1- 4 are submittted asynchronously. Please let me know how this could be resolved Thanks, Kanthi. -- View this message in context: http://www.nabble.com/Problem-with-DOJO-generated-Java-scripts-in-tapestry-4.1.3-tp15067524p15067524.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]