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]