Re: Submit form from other form onClick

2011-01-21 Thread Martin Grigorov
())); } } } ); -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, January 20, 2011 9:01 AM To: users@wicket.apache.org Subject: Re: Submit form from other form onClick you can submit any form with pure

Re: Submit form from other form onClick

2011-01-20 Thread Martin Grigorov
you can submit any form with pure javascript: document.getElementById('myform').submit(); this will call the respective myForm.onSubmit() method at the server side at server side you may call directly your methods e.g. new Form() {onSubmit() { myService.do(); }} new AjaxLink() {onClick() {

RE: Submit form from other form onClick

2011-01-20 Thread Brown, Berlin [GCG-PFS]
Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, January 20, 2011 9:01 AM To: users@wicket.apache.org Subject: Re: Submit form from other form onClick you can submit any form with pure javascript: document.getElementById('myform').submit(); this will call the respective