There are different ways of performing validation (3 and 4 on 2.1 only):
1. normal: validation occurs on the server and page is returned with errors (can use OGNL) 2. javascript: validation occurs on the client using javascript (limited) 3. ajax : validation occurs on the server, if there are errors a json string with the errors is returned so they can be shown on the user interface (can use OGNL) (developer can decide if contol will be transfered to a new page or not, when validation succeeds) 4. ajax + javascript: same as 3, but javascript validation runs before making the ajax request (developer can decide if contol will be transfered to a new page or not, when validation succeeds) I hope that helps musachy On 5/8/07, אלחנן מעין <[EMAIL PROTECTED]> wrote:
i would seem a lot ajax related fixing stuff are being loaded on 2.1.0 version.. seems nice i can finally find something comparable to commons-validations. (or asp.net validators). what's the difference in the show case between "Field Validators with client-side JavaScript " it's messages seemd to appear at the same location as samples in "Validation (client) " today a developer that ajax is one of biggest mistakes ever made, that after the world has spent years of getting off client/server architechture, it getting back into a client/server like ui. >From: "Musachy Barroso" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[email protected]> >To: "Struts Users Mailing List" <[email protected]> >Subject: Re: is ajax validation broken? >Date: Tue, 8 May 2007 12:43:09 -0400 > >on 2.0.6? yes. The ajax validation won't help you much if you are not using >complex OGNL expressions for validation (or code). > >musachy > >On 5/8/07, אלחנן מעין <[EMAIL PROTECTED]> wrote: >> >>so i should just use client side validation then? >> >> >> >> >From: "Musachy Barroso" <[EMAIL PROTECTED]> >> >Reply-To: "Struts Users Mailing List" <[email protected]> >> >To: "Struts Users Mailing List" <[email protected]> >> >Subject: Re: is ajax validation broken? >> >Date: Tue, 8 May 2007 08:48:20 -0400 >> > >> >Ajax validation has been changed/fixed for 2.1, where DWR is not >>required >> >any more. In 2.1 you will be able to just add an interceptor to your >>class >> >to enable ajax validation for it(and use the dojo plugin). The jira >>ticket: >> > >> >https://issues.apache.org/struts/browse/WW-1897 >> > >> >musachy >> > >> >On 5/8/07, אלחנן מעין <[EMAIL PROTECTED]> wrote: >> >> >> >>i've looked at the struts showcase samples, and where it says >>validation >> >>(ajax) it says broken, i running it, and it looks fine i think, (still >> >>don't >> >>know how to make it work on my application though , i clicked submit >>and >> >>moved away and it doesn't do anything. >> >> >> >>_________________________________________________________________ >> >>Don't just search. Find. Check out the new MSN Search! >> >>http://search.msn.com/ >> >> >> >> >> >>--------------------------------------------------------------------- >> >>To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >-- >> >"Hey you! Would you help me to carry the stone?" Pink Floyd >> >>_________________________________________________________________ >>FREE pop-up blocking with the new MSN Toolbar - get it now! >>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > >-- >"Hey you! Would you help me to carry the stone?" Pink Floyd _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd

