Hi,
I have a _javascript_ validation onsubmit of my form. When I click the commandLink the js gets called and throws the alert for validation failure. But the form submits even when the validation fails. Could you please let me know if I am not using this correctly.
SCRIPT:
function validate(){
;
}
return true;
}
FORM:
h:form id=frmSave onsubmit=return validate();
...
h:commandLink action=#{mBean.save}
h:outputText value=Save styleClass=button-text/
/h:commandLink
/h:form
Thanks,
Aruna
__
Do You Yahoo!?
Tired of spam? Yahoo
Post the generated form code.
- Original Message -
From:
Aruna
Kumaraswamy
To: users@myfaces.apache.org
Sent: Monday, July 04, 2005 12:03
PM
Subject: h:commandLink and onsubmit
Hi,
I have a _javascript_ validation onsubmit of my form. When I click
3 matches
Mail list logo