Re: Inline JavaScript form submit

2008-07-10 Thread Timo Rantalaiho
On Thu, 10 Jul 2008, rit wrote:
> which is working fine for me and disabling my button on first click , but
> the issue is after disabling submit button it should called my perform
> method.  which is not getting called . it just refresh my page. 

Have you checked if there are validation errors?

Best wishes,
Timo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Inline JavaScript form submit

2008-07-10 Thread rit

Hi All,

I have an added Behaviour on button to prevent double submitting . i have
added inline script 

button.setOnClickScript("this.disabled = true; this.className =
this.className + ' disabled'; ");

which is working fine for me and disabling my button on first click , but
the issue is after disabling submit button it should called my perform
method.  which is not getting called . it just refresh my page. 

i have even tried couple of things like return true , this.form.submit ,
even use onComponentTag like
onComponentTag(Component component, ComponentTag tag) {
if(!(component instanceof MButton)) return;
super.onComponentTag(component, tag);
tag.put("onClick","this.disabled = true; this.className = 
this.className +
' disabled'; return true;");
}
nothing workign for me .

Please suggest

Thanks
Rits
-- 
View this message in context: 
http://www.nabble.com/Inline-JavaScript-form-submit-tp18385509p18385509.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]