Re: Highlight invalid field in form with wicket 6.x

2012-10-14 Thread Martin Grigorov
rder package anymore in 6.x. > > So how can I highlight my invalid fields in a form with the newest apache > wicket? > Or should I try to use just JQuery for that? > > regards, > dave > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nab

Re: Highlight invalid field

2010-02-04 Thread Riyad Kalla
Anna, I think James literally meant this presentation, it's got the code snippets you want: http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf -R On Thu, Feb 4, 2010 at 12:25 PM, Anna Simbirtsev wrote: > Can you give an example please? > Actually I am validating uniqueness

Re: Highlight invalid field

2010-02-04 Thread James Carman
That's the one. That's where I "borrowed" my code from. :) On Thu, Feb 4, 2010 at 2:30 PM, Riyad Kalla wrote: > Anna, I think James literally meant this presentation, it's got the code > snippets you want: > http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf > > -R > > On T

Re: Highlight invalid field

2010-02-04 Thread Anna Simbirtsev
Can you give an example please? Actually I am validating uniqueness of the name, i just put the length as an example. But if you could give me an example of how to change the class using a behaviour, that would be nice. On Thu, Feb 4, 2010 at 2:20 PM, James Carman wrote: > It's better to use a va

Re: Highlight invalid field

2010-02-04 Thread James Carman
It's better to use a validator for this. And, you can add a behavior (look at forms with flair presentation) to change the class (I would do that instead of in-lining the style) of the components in error. On Thu, Feb 4, 2010 at 2:05 PM, Anna Simbirtsev wrote: > Hi, > > I am validating a field(u

Highlight invalid field

2010-02-04 Thread Anna Simbirtsev
Hi, I am validating a field(user presses validation button) and if its invalid I highlight the field in the following way: AjaxSubmitLink checkName = new AjaxSubmitLink("check_name", form) { public void onSubmit(AjaxRequestTarget target, Form form) { if (name.length