users@woodstock.java.net

Submit and disable a button

From: jangelrp <jangelrp_at_hotmail.com>
Date: Wed, 26 Mar 2008 22:29:21 -0700 (PDT)

Hi,
I have a question How can i disable my button for submitting the entire
form??

Suppose you have:
 a submit webuijsf:button (for submitting the entire form)
<webuijsf:button id="boton1" text="Save" style="width: 71px"
                                  primary="true"
                                  actionExpression="#{Oficinas.alta_action}"
                                  onClick="this.setProps({disabled: true});
return someValidation();"
                                  />

In this case my button is disabled and my function 'someValidation();'
return true "but the action is ignored cos the button is disabled"

Any ideas about how I could do that?

Sorry for my english!!!

Thanks


-- 
View this message in context: http://www.nabble.com/Submit-and-disable-a-button-tp16322463p16322463.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.