struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Roughley <...@fdar.com>
Subject Re: PROPOSAL: S2 ajax validation
Date Mon, 23 Apr 2007 13:59:46 GMT
Is the Ajax code all in a module now (2.1.x)?  Would this change be 
checked into the 2.0.x branch or just the trunk under the Ajax module, 
and then some cleanup/removal of existing code in the trunk?

/Ian

Musachy Barroso wrote:
> I have this working, but I want to give  it a little more time to 
> anyone to
> object before committing it :), just to review, these are the different
> validation options:
>
> 1. regular form, regular submit button  (normal validation)
> 2. css_html form, or xhtml form (validate="true"), regular submit button
> (client validation)
> 3. css_html form, or xhtml form (validate="true"), ajax submit button
> (client validation)
> 4. regular form, css_html form, or xhtml form, where action has the
> "ajaxValidation" interceptor, ajax submit button (validate="true") (ajax
> validation = dojo+interceptor, no DWR)
>
> regards
> musachy
>
> On 4/21/07, Musachy Barroso <musachy@gmail.com> wrote:
>>
>> I'd like to propose a change on the way we do ajax validation. 
>> Instead of
>> using DWR which requires an external dependency and configuring a 
>> servlet,
>> I'd like to have an interceptor in the dojo plugin that extends the
>> validator interceptor, which outputs JSON with the messages when 
>> there are
>> validation errors.
>>
>> To use ajax validation all a user would have to do is add the 
>> interceptor
>> to his/her class and set "validate" to "true" in either the form, or the
>> submit/anchor that is submitting the form.
>>
>> regards
>> musachy
>> -- 
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>
>
>

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


Mime
View raw message