Re: Defining a validate() method

2007-08-06 Thread Session A Mwamufiya
Great help, Thanks! Session > I forgot to add that you can also use annotations or XML validation for > simple validations. If you set the validate=true on your s:form and you > are using the XML validators, it will generate the client side javascript > nessessary to do the validations. After

Re: Defining a validate() method

2007-08-06 Thread Richard Sayre
I forgot to add that you can also use annotations or XML validation for simple validations. If you set the validate=true on your s:form and you are using the XML validators, it will generate the client side javascript nessessary to do the validations. After the form submits it will do those valid

Re: Defining a validate() method

2007-08-06 Thread Richard Sayre
addFieldError("fieldName","message"); will add a specific field error. If you are using the XHTML theme, the error will appear above the field. This should set and clear the validation message for you. If you are using the simple theme you have to add the s:fielderror tag. On 8/6/07, Session