And when do you want to block exactly? When a certain Ajax action is executed, which may take some time to complete? And you would do some Ajax polling to track the progress?
The easiest way in that case would be to re-render the form with the form components disabled, and when the polling concludes that processing is done, re-render the form again with the form components enabled again. You could add two methods on your form: disable/ enable. Something like: public void disable() { visitChildren(FormComponent.class, new IVisitor(){ public Object component(Component component) { component.setEnabled(false); return IVisitor.CONTINUE_TRAVERSAL; }}); }' Whenever you build this form, you should check the job's state too, so that if you have a background job running, your form has the proper mode wherever you come from. And if there is a job running, make sure you have that ajax polling thing going until the job is finished. Just something from the top of my head, hope it helps, Eelco > > We have a form where we would like to disable the complete form onsubmit so > that the user cant change any of his selected values and we would like to > display a progress meter(it does not have to show the actual progress just a > gif like the AJAX examples). I have been thinking of the AJAX examples but I > guess that since we somehow would like to stall the browser it's not really > a good solution, we would have to add all for components again just disabled > and then on the end of the ajax call add them all again enabled? > > > > Whats your 2 centavos on this? > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user