h:commandLink and onsubmit

2005-07-05 Thread Aruna Kumaraswamy
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(){

Re: h:commandLink and onsubmit

2005-07-05 Thread Slawek
; } 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

Re: h:commandLink and onsubmit

2005-07-05 Thread Zarar Siddiqi
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