Thanks Dan for replay!!!
I explained my problem incorrectly, the idea is to avoid duplicate submit.
this is the idea,
function someValidation(id,profile) {
if(!valida(profile)){
// incorrect validation
return false;
}
var domNode = document.getElementById(id);
domNode.setProps({disabled: true});"
return true;
}
In my page
<webuijsf:button id="boton1" text="Save" style="width: 71px"
primary="true"
actionExpression="#{Oficinas.alta_action}"
onClick="return
someValidation(this,profile);"
If my method someValidation() return false i can't submit the form the event
onClick ignore the event, that's correct, i need enter valid information.
otherwise if returns true i would like submit the form but the the problem
here is that the button is disabled and ignore the actionExpression.
Any idea to sumit my form with my button disabled???
--
View this message in context: http://www.nabble.com/Submit-and-disable-a-button-tp16322463p16365935.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.