struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: PROPOSAL: S2 ajax validation
Date Mon, 23 Apr 2007 14:04:25 GMT
This would be for 2.1, and it would be in Bind.js. It is actually only one
function, which will be calling the functions in
validation.js(addError/clearErrors...). I'm planning to do some
cleanup after that as we
have some javascript/css files hanging around, which are not used.

musachy

On 4/23/07, Ian Roughley <ian@fdar.com> wrote:
>
> 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
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message