Re: Server and client side validation

2013-05-14 Thread Gabriel Landon
.getMarkupId(;/ Regards, Gabriel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658795.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Server and client side validation

2013-05-14 Thread Martin Grigorov
st('form').parsley();", > this.getMarkupId(; > } > }/ > > Is there a better way to do that, or is it OK? > > Regards, > > Gabriel. > > > > -- >

Re: Server and client side validation

2013-05-13 Thread Gabriel Landon
rkupId(; } }/ Is there a better way to do that, or is it OK? Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658773.html Sent from the Users forum mailing list archive at

Re: Server and client side validation

2013-05-08 Thread Martin Grigorov
Le 7 mai 2013 20:15, "Gabriel Landon" a écrit : > > > Hi Cedric, > > > > Yes I've seen what you have done. > > Did you manage to make it works with forms in ModalWindow? > > > > Regards, > > > > Gabriel. > > > > > &

Re: Server and client side validation

2013-05-07 Thread Cedric Gatay
Window? > > Regards, > > Gabriel. > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658631.html > Sent from the Users forum mailing list archive at Nabble.com. > > ---

Re: Server and client side validation

2013-05-07 Thread Gabriel Landon
Hi Cedric, Yes I've seen what you have done. Did you manage to make it works with forms in ModalWindow? Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658631.html Sent from the Users forum ma

Re: Server and client side validation

2013-05-06 Thread Cedric Gatay
> > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658602.html > Sent from the Users forum mailing list archive at Nabble.com. > > - >

Re: Server and client side validation

2013-05-06 Thread Gabriel Landon
ow. As the form tag is replace with a div tag, Parsley doesn't seems to work in this case. Do you have an idea on how to fix that? Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658602.html Sent

Re: Server and client side validation

2013-05-06 Thread Gabriel Landon
rver-and-client-side-validation-tp4658242p4658601.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Server and client side validation

2013-04-30 Thread Martin Grigorov
Thanks for sharing, Cedric! Well done! On Tue, Apr 30, 2013 at 9:19 AM, Cedric Gatay wrote: > Hi, > > Your blog post helped me write my first version of the integration between > JSR303 (bean-validation) and client side validation using parsley.js. You > can find the curre

Re: Server and client side validation

2013-04-30 Thread Cedric Gatay
Hi, Your blog post helped me write my first version of the integration between JSR303 (bean-validation) and client side validation using parsley.js. You can find the current work on this Github repository: https://github.com/code-troopers/wicket-jsr303-parsley Regards, __ Cedric Gatay

Re: Server and client side validation

2013-04-24 Thread Cedric Gatay
Thanks Martin, I was just wondering how I could do that. Nice library and nice integration with Wicket. Regards Le 24 avr. 2013 18:07, "Martin Grigorov" a écrit : > Hi, > > I just posted a new article at > http://wicketinaction.com/2013/04/server-and-client-side-validatio

Server and client side validation

2013-04-24 Thread Martin Grigorov
Hi, I just posted a new article at http://wicketinaction.com/2013/04/server-and-client-side-validation/ about integrating Wicket with client side validation library. Enjoy! -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>

Re: Client side validation behaviors - already started?

2008-10-05 Thread Jörn Zaefferer
cket-stuff/trunk/wicketstuff-client-and-server-validation/ > > Here are the basic features: > > - By simply replacing formcomponent.add(StringValidator.exactLength(4)) > with add(new ClientAndServerExactLengthValidatingBehavior(form, 4)), it will > do the client side validatio

Re: Client side validation behaviors - already started?

2008-10-04 Thread Jeremy Thomerson
/wicketstuff-client-and-server-validation/ Here are the basic features: - By simply replacing formcomponent.add(StringValidator.exactLength(4)) with add(new ClientAndServerExactLengthValidatingBehavior(form, 4)), it will do the client side validation and add the server side IValidator for you

Re: Client side validation behaviors - already started?

2008-10-04 Thread Jörn Zaefferer
kettraining.com > -- sent from a wireless device > > > -Original Message- > From: Jörn Zaefferer =F6rn_Zaefferer _ <[EMAIL PROTECTED]> > Sent: Saturday, October 04, 2008 5:50 AM > To: users@wicket.apache.org > Subject: Re: Client side validation behaviors

RE: Client side validation behaviors - already started?

2008-10-04 Thread Jeremy Thomerson
-Original Message- From: Jörn Zaefferer =F6rn_Zaefferer _ <[EMAIL PROTECTED]> Sent: Saturday, October 04, 2008 5:50 AM To: users@wicket.apache.org Subject: Re: Client side validation behaviors - already started? What approach for client-side validation are you looking for? I

Re: Client side validation behaviors - already started?

2008-10-04 Thread Jörn Zaefferer
What approach for client-side validation are you looking for? I may be able to help with that. Jörn On Fri, Oct 3, 2008 at 5:50 AM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > I've been thinking of trying to create some behaviors that combine the > standard server-side valid

Client side validation behaviors - already started?

2008-10-02 Thread Jeremy Thomerson
I've been thinking of trying to create some behaviors that combine the standard server-side validation with client-side validation. I just wanted to check to see if anyone knew of something like this already started. I don't want to duplicate work already done. Thanks, -- Jeremy

Re: Pure client side validation

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
something I would look into at some point.. Maybe the way would be to upgrade the fvalidate integration to current wicket version? harrypitt wrote: Ok, my question was not clear enough. With "Pure client side validation" i mean a javascript validation which needs no ajax requests. Of co

Re: Pure client side validation

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
current wicket version? harrypitt wrote: Ok, my question was not clear enough. With "Pure client side validation" i mean a javascript validation which needs no ajax requests. Of course there should be always a server side validation and the whole default Wicket form-handling AFTER the

Re: Pure client side validation

2008-10-02 Thread Igor Vaynberg
ons about this topic: > - Are there any example implementations for such client side validations? dont think so, maybe you can create one > - There is also a Wicket-Stuff project "fvalidate": Has this project a > different concept? i think that project is defunct, fvalidate has

Re: Pure client side validation

2008-10-02 Thread harrypitt
Ok, my question was not clear enough. With "Pure client side validation" i mean a javascript validation which needs no ajax requests. Of course there should be always a server side validation and the whole default Wicket form-handling AFTER the submit. It would be really stupid to ju

Re: Pure client side validation

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
have some additional questions about this topic: - Are there any example implementations for such client side validations? - There is also a Wicket-Stuff project "fvalidate": Has this project a different concept? - Is there a plan to integrate pure client side validation in the wicket framew

Re: Pure client side validation

2008-10-02 Thread harrypitt
ions about this topic: - Are there any example implementations for such client side validations? - There is also a Wicket-Stuff project "fvalidate": Has this project a different concept? - Is there a plan to integrate pure client side validation in the wicket framework soon? Harry

Re: Pure client side validation

2008-09-30 Thread Igor Vaynberg
tion i have > to make sure if the framework supports pure (java script) client side > validation. > > As far as i know Wicket "only" supports client side validation with ajax > requests. This solution is not satisfying for us, because we want to use the > framework to crea

Re: Pure client side validation

2008-09-30 Thread pixologe
ks > and it seems that Wicket or JSF will be the winner (To be honest, my > personal opinion is that Wicket is the far better choice). In this > evaluation i have to make sure if the framework supports pure (java > script) client side validation. > > As far as i know Wicket &qu

Pure client side validation

2008-09-30 Thread harrypitt
lient side validation. As far as i know Wicket "only" supports client side validation with ajax requests. This solution is not satisfying for us, because we want to use the framework to create huge forms which are used by many people. And we think it would be a hard job for our servers to p

Re: Client side validation

2008-07-01 Thread Ryan Sonnek
Okay, I've attached a patch that adds the maxlength html attribute. On Tue, Jul 1, 2008 at 11:24 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Tue, Jul 1, 2008 at 7:11 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > Do any of the core validators actually implement this interface? > > Not yet

Re: Client side validation

2008-07-01 Thread Eelco Hillenius
On Tue, Jul 1, 2008 at 7:11 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > Do any of the core validators actually implement this interface? Not yet I think, but it's never to late :-) Eelco - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Client side validation

2008-07-01 Thread Ryan Sonnek
dded method, so it is already possible to > > design validators that take care of both server- and client side > > validation. > > Javadocs from that class: > > public interface IValidatorAddListener extends IClusterable > { >/** > * Called right

Re: Client side validation

2008-06-30 Thread Eelco Hillenius
> That's why we introduced IValidatorAddListener in the past if I > remember correctly. I validator that implements IValidatorAddListener > can add behaviors in the onAdded method, so it is already possible to > design validators that take care of both server- and client

Re: Client side validation

2008-06-30 Thread Eelco Hillenius
On Tue, Jun 24, 2008 at 2:07 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > the reason we have not done this is that client side validation is > limited. also a lot of applications want a consistent look and feel > for javascript validation, which is not possible via a framework

Re: Client side validation

2008-06-29 Thread Matthijs Wensveen
s be done after that on the serverside On 6/26/08, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: I know ASP.Net has this too, and falls back to the server when client side validation is not possible (or is hacked by a smarter than average user). Something could be done. I think would be wo

Re: Client side validation

2008-06-27 Thread Johan Compagner
rver when client > side validation is not possible (or is hacked by a smarter than average > user). Something could be done. I think would be worth the time when you > have it (time, that is). I'd start with a separate project, so that > people can try it out. > > Matthijs >

Re: Client side validation

2008-06-27 Thread Matthijs Wensveen
I know ASP.Net has this too, and falls back to the server when client side validation is not possible (or is hacked by a smarter than average user). Something could be done. I think would be worth the time when you have it (time, that is). I'd start with a separate project, so that peopl

Re: Client side validation

2008-06-24 Thread Igor Vaynberg
4, 2008 at 6:07 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> the reason we have not done this is that client side validation is >> limited. also a lot of applications want a consistent look and feel >> for javascript validation, which is not possible via a framework.

Re: Client side validation

2008-06-24 Thread Manuel Corrales
ons. Here is the thing, i was using Tapestry 5 > for > > a while, and now i am developing with wicket. One thing i liked about T5 > was > > the "magic" on the client side validation without the need to write > > javascript, and it worked pretty good. I really do

Re: Client side validation

2008-06-24 Thread Igor Vaynberg
the reason we have not done this is that client side validation is limited. also a lot of applications want a consistent look and feel for javascript validation, which is not possible via a framework. what we are going to do in 1.5 is allow ivalidator to also implement ibehavior, this will allow a

Client side validation

2008-06-24 Thread Manuel Corrales
"magic" on the client side validation without the need to write javascript, and it worked pretty good. I really do not have the time now, but it would be great to accomplish something like this: RequiredTextField tf = new tf.enableClientSideValidation(); my approach would be to bor

Re: client side validation

2008-01-27 Thread Erik van Oosten
That doesn't work. Sometimes you want to add multiple behaviors to the same event. Wicket doesn't support that. Erik. James Carman wrote: > So, create an IComponentInstantiationListener that looks for Forms and > adds the behavior to them. > > > --

Re: client side validation

2008-01-27 Thread Flemming Boller
> as far as getting the name of formcomponent, that is already possible > through ibehavior.bind(component) > > -igor > > > On Jan 27, 2008 12:07 PM, Flemming Boller <[EMAIL PROTECTED]> > wrote: > > Hi > > > > Just a thought about client side validatio

Re: client side validation

2008-01-27 Thread Igor Vaynberg
:07 PM, Flemming Boller <[EMAIL PROTECTED]> wrote: > Hi > > Just a thought about client side validation. > > I have looked at simple validation like maxlength, min length stuff like > that. The jQuery > validation plugin solves that easily. > > My idea was to inhe

Re: client side validation

2008-01-27 Thread Flemming Boller
Hi Just a thought about client side validation. I have looked at simple validation like maxlength, min length stuff like that. The jQuery validation plugin solves that easily. My idea was to inherit from the corresponding wicket-validator and implement IBehavoir. Then I would be able to

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 9:00 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > > http://www.jroller.com/wireframe/entry/wicket_client_side_validation > > > > > > I've spent the past couple weeks investigating Wicket's support for > > > client side validation. IMO, using

Re: client side validation

2008-01-27 Thread Igor Vaynberg
; > http://www.jroller.com/wireframe/entry/wicket_client_side_validation > > > > I've spent the past couple weeks investigating Wicket's support for > > client side validation. IMO, using Ajax for validation in Wicket is > > really amazing. Lots of folks ar

Re: client side validation

2008-01-27 Thread Igor Vaynberg
On Jan 27, 2008 10:35 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > On Jan 27, 2008 12:20 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > but then my app wont work. i add my own ajax behavior that knows how > > to do all this... so i would have to override some method on the form > > and tell it no

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:20 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > but then my app wont work. i add my own ajax behavior that knows how > to do all this... so i would have to override some method on the form > and tell it not to do its default thing? let me quote someone > "Yuk...I'd hate to go t

Re: client side validation

2008-01-27 Thread Igor Vaynberg
but then my app wont work. i add my own ajax behavior that knows how to do all this... so i would have to override some method on the form and tell it not to do its default thing? let me quote someone "Yuk...I'd hate to go through my *entire* application and replace org.apache.wicket.Form with com.

Re: client side validation

2008-01-27 Thread Ryan Sonnek
of the box". I just think it's a cool feature and other frameworks seem to be investigating client side validation... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: client side validation

2008-01-27 Thread James Carman
So, create an IComponentInstantiationListener that looks for Forms and adds the behavior to them. On 1/27/08, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > On Jan 27, 2008 12:07 PM, James Carman <[EMAIL PROTECTED]> wrote: > > True, I guess you could create your own form superclass that does the > > def

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > also -1. it is trivial to do it yourself automatically like you said > in your blog. there are plenty of usecases that wont work out of the > box. take a common usecase where the label turns red if the field is > in error, how do

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:07 PM, James Carman <[EMAIL PROTECTED]> wrote: > True, I guess you could create your own form superclass that does the > default behavior you want. Yuk...I'd hate to go through my *entire* application and replace org.apache.wicket.Form with com.mysite.MySpecialForm. very messy.

Re: client side validation

2008-01-27 Thread James Carman
7;t use javascript? > > Even if it's done for you and just works? > > > > Wow...that's sad, but I hardly think that's the norm and such extremes > > should not mandate system defaults. > > > > Any other arguments against such a default? The reason

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 11:39 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Almost any government site/application must comply with accessibility rules > which often prohibit the use of JavaScript. section 508 compliance does *not* prohibit javascript or Ajax. You just have to be careful how you use

Re: client side validation

2008-01-27 Thread Igor Vaynberg
s. > > Any other arguments against such a default? The reason I'm bringing > this up is that Tapestry ships with client side validation turned on > by default, and I *really* like using Wicket's Ajax for form > validation. > > Hey...if tapestry can do it... =) > >

Re: client side validation

2008-01-27 Thread Martijn Dashorst
gt; > drawbacks to having this be the default behavior? > > > > > > On Jan 27, 2008 9:00 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > > > http://www.jroller.com/wireframe/entry/wicket_client_side_validation > > > > > > > > I've spent the

Re: client side validation

2008-01-27 Thread James Carman
ot mandate system defaults. > > Any other arguments against such a default? The reason I'm bringing > this up is that Tapestry ships with client side validation turned on > by default, and I *really* like using Wicket's Ajax for form > validation. > > Hey...if tapestry

Re: client side validation

2008-01-27 Thread Ryan Sonnek
on I'm bringing this up is that Tapestry ships with client side validation turned on by default, and I *really* like using Wicket's Ajax for form validation. Hey...if tapestry can do it... =) On Jan 27, 2008 10:17 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > -1. There are e

Re: client side validation

2008-01-27 Thread Martijn Dashorst
> > http://www.jroller.com/wireframe/entry/wicket_client_side_validation > > > > I've spent the past couple weeks investigating Wicket's support for > > client side validation. IMO, using Ajax for validation in Wicket is > > really amazing. Lots of folks a

Re: client side validation

2008-01-27 Thread Ryan Sonnek
AIL PROTECTED]> wrote: > http://www.jroller.com/wireframe/entry/wicket_client_side_validation > > I've spent the past couple weeks investigating Wicket's support for > client side validation. IMO, using Ajax for validation in Wicket is > really amazing. Lots of folks are

client side validation

2008-01-27 Thread Ryan Sonnek
http://www.jroller.com/wireframe/entry/wicket_client_side_validation I've spent the past couple weeks investigating Wicket's support for client side validation. IMO, using Ajax for validation in Wicket is really amazing. Lots of folks are touting "javascript validation" ri