struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Herrera <pedro_herr...@hotmail.com>
Subject Re: <s:form validate="true">
Date Thu, 30 Aug 2007 16:39:49 GMT

I´ve submitted a jira(improvement) to use validation with simple theme. I´ve
suggested use alert instead.

Herrera 



strutstwouser wrote:
> 
> if validate=true , js function (pure client side) onsubmit is invoked on
> the
> form in  xhtml theme ; and in ajax theme it adds and onblur validate() to
> every field element and validates it using ajax. Both of these use the
> rules
> defined in your validation xml file.
> 
> So setting validate=true is for invoking validation before submit
> 
> 
> 
> On 8/30/07, Pavel Sapozhnikov <pavel.sapozhnikov@gmail.com> wrote:
>>
>> Hi I have a question about this <s:form validate="true"> attribute. So
>> when
>> I put it in s:form it says its only useful with xhtml or ajax themes.
>> Why.
>> I
>> read the documentation on that thing it says that this is only javascript
>> thing. What I don't understand is that it still says to have xml file or
>> validate() method. But if I have either of those 2 -its gonna validate so
>> what NEW does validate="true" in s:form give me. Thanks.
>>
>> --
>> Pavel Sapozhnikov
>> xFact, Inc
>> pavel@xfact.com
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/%3Cs%3Aform-validate%3D%22true%22%3E-tf4353728.html#a12411233
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message