Send your emails in a batch at a later time, or if you are using Spring you could use the new @Async annotation.
From: lucast <lucastol...@hotmail.com> To: users@wicket.apache.org Date: 04/25/2011 08:32 AM Subject: Continue navigating while on submit button process stuff on the background Dear Forum, I have a simple tabbed view object page with a notify button that when the user clicks on the button, it emails a long list of people with information about the concerning the object. Some objects have a list of 100+ email addresses and clicking on submit stops me from continuing visiting other tabbed pages until the email class has finished sending all the emails (40 seconds afterwards). How can implement the notify button so that it emails people on the background AND allows me to continue navigating out of the current view tabbed page into another page? Thanks in advance, Lucas The button i'm implementing is simple: new Button ("notifyButton"){ @Override public void onSubmit() { EmailServices emailService = new EmailNotificationService(); emailService.notifyMailingList(object); } }; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3473026.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 Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.