Re: Client-side validation extensions

2008-09-17 Thread Jeromy Evans
Dave Newton wrote: Any more comments? The question has come up a few times on the user list in the last week or two. My proposal is an incremental improvement (if tiny); if we switch to commons-validator at least their JavaScript code could be re-used. Dave I still say go with the increm

Re: Client-side validation extensions

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, Niall Pemberton wrote: > IMO the commons validator javascript is pretty horrible - > each validator assumes there is a method named after the > form which returns an array [...] The original issue wasn't the JavaScript validation code itself, it was the inability to plug in

Re: Client-side validation extensions

2008-09-16 Thread Niall Pemberton
On Tue, Sep 16, 2008 at 3:11 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Any more comments? > > The question has come up a few times on the user list in the last week or > two. My proposal is an incremental improvement (if tiny); if we switch to > commons-validator at least their JavaScript code

Re: Client-side validation extensions

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, Gabriel Belingueres wrote: > Switching to commons-validator because of its javascript code only? No. The thread contains the original issue and comments. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Client-side validation extensions

2008-09-16 Thread Gabriel Belingueres
Switching to commons-validator because of its javascript code only? Would it be imprudent just grab the js code without adding commons-validator as a dependency? Last time I checked seemed as if commons-validator was kind of dormant. Still, seems like it is the lowest resistance path to follow. Pl

Re: Client-side validation extensions

2008-09-16 Thread Dave Newton
Any more comments? The question has come up a few times on the user list in the last week or two. My proposal is an incremental improvement (if tiny); if we switch to commons-validator at least their JavaScript code could be re-used. Dave --- On Wed, 9/10/08, Dave Newton wrote: > --- On Tue, 9

Re: Client-side validation extensions

2008-09-10 Thread Dave Newton
--- On Tue, 9/9/08, Jeromy Evans wrote: > I don't use S2's client-side validation myself as its too fragile, and > this improvement won't help that. (fragile as in its hardcoded to match > a theme's tag structure and breaks if a tag is out-of-place). I was also going to add some ids here and the

Re: Client-side validation extensions

2008-09-09 Thread Jeromy Evans
Dave Newton wrote: --- On Tue, 9/9/08, Martin Cooper wrote: This smells like reinventing a subset of Commons Validator just for S2. Can you convince me otherwise? My initial motivation was to create a stop-gap, extensible mechanism for adding custom JavaScript validators without havin

Re: Client-side validation extensions

2008-09-09 Thread Dave Newton
--- On Tue, 9/9/08, Martin Cooper wrote: > This smells like reinventing a subset of Commons Validator > just for S2. Can you convince me otherwise? My initial motivation was to create a stop-gap, extensible mechanism for adding custom JavaScript validators without having to do a major XW/S2 revam

Re: Client-side validation extensions

2008-09-09 Thread Martin Cooper
This smells like reinventing a subset of Commons Validator just for S2. Can you convince me otherwise? -- Martin Cooper On Sat, Sep 6, 2008 at 8:42 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > I'd like to add a couple of hooks into the client-side, non-Ajax validation > code to make it easier (

Re: Client-side validation extensions

2008-09-09 Thread Gabriel Belingueres
Dave that would be a very useful addition! A few days ago I managed to include a basic client side DateValidator in my slightly modified xhtml theme, but the experience was far from ideal. The validator only worked for the calendar because the validation code is all in one place and had to use do

Re: Client-side validation extensions

2008-09-07 Thread Dave Newton
--- On Sun, 9/7/08, Musachy Barroso wrote: > who would be responsible for showing the errors? if it is > the framework, then an error map needs to be returned, like > you said. If it is the plugged in functions, then we need to > document those utility functions that we have to show validation >

Re: Client-side validation extensions

2008-09-07 Thread Musachy Barroso
who would be responsible for showing the errors? if it is the framework, then an error map needs to be returned, like you said. If it is the plugged in functions, then we need to document those utility functions that we have to show validation errors. I like the idea. musachy On Sat, Sep 6, 2008

Client-side validation extensions

2008-09-06 Thread Dave Newton
I'd like to add a couple of hooks into the client-side, non-Ajax validation code to make it easier (possible?) to call custom JavaScript validators. My current solution seems a bit stop-gappy, but ultimately might be flexible enough to suffice. ObCaveat: I've only looked at the "xhtml" theme so