Re: Showcase app ajax validation check

2017-02-21 Thread Christoph Nenning
E, too. My guess is that struts was changed to use status code 400 when validation errors are present. Previously it must have used status code 200. I've pushed a change based on Greg's sample and put it in wiki: https://cwiki.apache.org/confluence/display/WW/AJAX+Validation Actually

Re: Showcase app ajax validation check

2017-02-16 Thread Lukasz Lenart
2017-02-16 9:08 GMT+01:00 Greg Huber : >>I don't understand, 400 is a common way to say that the request was >>wrong, do you want something else? > > On firefox, a 400 triggers the > > error: function(xhr, textStatus, errorThrown) {..} > > so only displays 'Network or server error!' rather than the

Re: Showcase app ajax validation check

2017-02-16 Thread Greg Huber
>I don't understand, 400 is a common way to say that the request was >wrong, do you want something else? On firefox, a 400 triggers the error: function(xhr, textStatus, errorThrown) {..} so only displays 'Network or server error!' rather than the validation response. Maybe a 400 on other browse

Re: Showcase app ajax validation check

2017-02-15 Thread Lukasz Lenart
2017-02-13 11:06 GMT+01:00 Greg Huber : > Was looking at some client side validation, with the showcase app. I use > firefox and it was not working, it just returned Network or server error! > > https://struts.apache.org/docs/ajax-validation.html > > The ajax call was returning 400, so falls back o

Showcase app ajax validation check

2017-02-13 Thread Greg Huber
Was looking at some client side validation, with the showcase app. I use firefox and it was not working, it just returned Network or server error! https://struts.apache.org/docs/ajax-validation.html The ajax call was returning 400, so falls back onto the error function and just displays the netwo

Re: PROPOSAL: S2 ajax validation

2007-05-30 Thread Musachy Barroso
Given that DWR integration is broken anyway, and the ajax validation had mixed content of 2.1 already, I started to draft the documentation for it here (DWR was there before): http://cwiki.apache.org/confluence/display/WW/AJAX+Validation //editing help more than welcomed :) musachy On 4/29/07

Re: PROPOSAL: S2 ajax validation

2007-04-29 Thread Musachy Barroso
One of the things I want to do is update the documentation for all the ajax tags, so we don't have that super-page with everything on it :). I think Don told me once that the wiki could be branched with the code. If the boxes are the only way I will just wait until we start building 2.1 to avoid m

Re: PROPOSAL: S2 ajax validation

2007-04-29 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > is there anyway I can update the docs (wiki) > without affecting 2.0.8 documentation? AFAIK this is handled w/ version notations in colorful boxes so it'll stand out :/ I don't know if there is a [reasonable] way to support a 2.0 vs. 2.1 docs on a h

Re: PROPOSAL: S2 ajax validation

2007-04-28 Thread Musachy Barroso
, an ajax request will be made, if validation succeeds. So now if you are using the ajaxtags to make ajax requests, ajax validation can be used by setting this attribute to true. The ajax validation example in showcase is updated with 2 examples, one using regular submit after validation and another us

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Musachy Barroso
t; 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: >> >> >

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Brian Pontarelli
egular 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 bu

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Musachy Barroso
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 su

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Musachy Barroso
> 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_

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Brian Pontarelli
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 > "ajaxVa

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Musachy Barroso
e="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

Re: PROPOSAL: S2 ajax validation

2007-04-23 Thread Ian Roughley
(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, M

Re: PROPOSAL: S2 ajax validation

2007-04-22 Thread Musachy Barroso
lar 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") (aj

PROPOSAL: S2 ajax validation

2007-04-21 Thread Musachy Barroso
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

Re: Ajax Validation

2007-04-18 Thread Felipe Rodrigues
if you come up with a > patch I will check it out. > > thanks > musachy > > On 4/13/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: >> >> >> I've seen at ShowCase that Ajax validation is broken. >> Does anyone have more details about that, or

Re: Ajax Validation

2007-04-14 Thread Musachy Barroso
You might want to take a look at form-close.ftl in the Dojo plugin in trunk, I think there is where the validation is generated, if you come up with a patch I will check it out. thanks musachy On 4/13/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: I've seen at ShowCase that Ajax

Ajax Validation

2007-04-13 Thread Felipe Rodrigues
I've seen at ShowCase that Ajax validation is broken. Does anyone have more details about that, or even how to fix that? I could work on this issue if I get some direction first. I also need this kind of validation in a app. Thanks, Felipe -- View this message in context: