Re: highlight invalid fields with custom Validation Framework?

2012-11-25 Thread James Selvakumar
Martin, Thank you so much. I was exactly in the position where delta458 was and almost got through with it. After following your suggestions, the ValidationMsgBehavior looks like this: pre public class ValidationMsgBehavior extends Behavior { @Override public void onRendered(Component c)

Re: highlight invalid fields with custom Validation Framework?

2012-11-25 Thread Martin Grigorov
On Mon, Nov 26, 2012 at 4:50 AM, James Selvakumar ja...@mcruncher.comwrote: Martin, Thank you so much. I was exactly in the position where delta458 was and almost got through with it. After following your suggestions, the ValidationMsgBehavior looks like this: pre public class

Re: highlight invalid fields with custom Validation Framework?

2012-10-17 Thread delta458
Hi Martin, thanks so much for the replies... almost done, some little questions still there.. I got it working, could you verify that its right what I made? :) 1) *//Had Error: Wrong number of type arguments, required 2 - It works when I do IVisitorComponent,Void ;-) public class

Re: highlight invalid fields with custom Validation Framework?

2012-10-17 Thread Martin Grigorov
On Wed, Oct 17, 2012 at 8:22 AM, delta458 delta...@hotmail.com wrote: Hi Martin, thanks so much for the replies... almost done, some little questions still there.. I got it working, could you verify that its right what I made? :) 1) *//Had Error: Wrong number of type arguments, required 2 -

Re: highlight invalid fields with custom Validation Framework?

2012-10-16 Thread Martin Grigorov
On Mon, Oct 15, 2012 at 11:17 PM, delta458 delta...@hotmail.com wrote: Alright, I have something like this now: Problems/Errors are *bold* * //Here is a problem with the class: it says: ShinyFormVisitor is not abstract and does not override abstract method component(Object,IVisit) in

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread Bert
Hi, are you looking for a generic way to highlight invalid components? If so, have a look at https://code.google.com/p/londonwicket/downloads/detail?name=LondonWicket-FormsWithFlair.pdf as an inspiration point. Depending on the wicket version, you might have to adopt the code a bit. Hope that

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread Martin Grigorov
What exactly doesn't work ? On Mon, Oct 15, 2012 at 1:26 PM, delta458 delta...@hotmail.com wrote: Yes I tried it. But its not working with the wicket 6.0 version... As a newbie its hard to adopt for me, where can I see the new changes? or what I should change? -- View this message in

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread delta458
I used the ShinyFormVisitor principle as described in the pdf: and I get following errors(in bold): public class ShinyFormVisitor implements IVisitor, Serializable { Set visited = new HashSet(); public Object component(Component c) { if (!visited.contains(c)) {

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread Martin Grigorov
On Mon, Oct 15, 2012 at 4:58 PM, delta458 delta...@hotmail.com wrote: I used the ShinyFormVisitor principle as described in the pdf: and I get following errors(in bold): public class ShinyFormVisitor implements IVisitor, Serializable { Set visited = new HashSet(); public Object

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread delta458
Alright, I have something like this now: Problems/Errors are *bold* * //Here is a problem with the class: it says: ShinyFormVisitor is not abstract and does not override abstract method component(Object,IVisit) in IVisitor* public class *ShinyFormVisitor* implements IVisitor, Serializable {