I gave that a shot but it didn't seem to work. It still did the disabling after onSubmit() returned. I'm not going to worry about it at this point, I just thought it'd be better to do it.
Thanks for your assistance mihir. mihir wrote > You could something like below: > > final AjaxButton testButton1 = new AjaxButton("test1"){ > > /** > * > */ > private static final long serialVersionUID = 1L; > > @Override > protected void onSubmit(AjaxRequestTarget target, Form<?> > form) > { > > target.appendJavascript("document.getElementById('tb2').disabled=true;"); > > target.appendJavascript("document.getElementById('tb3').disabled=true;"); > } > }; > > testButton1.setMarkupId("tb1"); > testButton1.setOutputMarkupId(true); > > final Button testButton2 = new Button("test2"); > testButton2.setMarkupId("tb2"); > testButton2.setOutputMarkupId(true); > > final Button testButton3 = new Button("test3"); > testButton3.setMarkupId("tb3"); > testButton3.setOutputMarkupId(true); > > Thanks, > -Mihir. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatingButton-tp4672874p4672879.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org