Re: at least one-validation?

2009-08-26 Thread Stefan Malmesjö
Thank you, Vineet. That worked so much better than my attempt. But I still don't quite understand why... :-[ Anyway, now I get a nice error message when I expect one, and none when I don't. :) /Stefan On 2009-08-25 21:02, vineet semwal wrote: what is attribute search panel and how are

Re: at least one-validation?

2009-08-25 Thread Stefan Malmesjö
Yeah, I got that part. Easy in theory, a bit more complicated in real life :) I'm doing something wrong, and I can't figure out what. My IFormValidator doesn't seem to get the request params correctly. If, in validate(), I use getInput() on the FormComponents, then I get null no matter what

Re: at least one-validation?

2009-08-25 Thread vineet semwal
what is attribute search panel and how are you actually creating the list of form components? following is the easiest way .. 1. create a list of formcomponent say a arraylist 2)in popolulate method of your listview,add the textfields or any other fc to list. so by the end of method you have a

Re: at least one-validation?

2009-08-24 Thread James Carman
form-level validator? 2009/8/24 Stefan Malmesjö s.m.mo...@gmail.com: Hi! I have a form that has a number of textfield inputs that are created dynamically from information from a database (depending on the object type selected in a dropdown, different input fields are possible). What I want

Re: at least one-validation?

2009-08-24 Thread Stefan Malmesjö
Thanks. Just didn't know what to search for. Looking into it now. Thanks for the nudge :) /Stefan On 2009-08-24 13:50, James Carman wrote: form-level validator? 2009/8/24 Stefan Malmesjös.m.mo...@gmail.com: Hi! I have a form that has a number of textfield inputs that are created

Re: at least one-validation?

2009-08-24 Thread James Carman
Although, what you're talking about might be a cool idea for an ajax component. Basically, you'd have a component that edits a list/set of values using text fields where you can add more via ajax. Someone has to have done this before, I'm sure. Anyone? Did you poke around wicketstuff first?

Re: at least one-validation?

2009-08-24 Thread Stefan Malmesjö
Yeah, that'd be cool, but I haven't checked wicketstuff. I'll see what I find. /Stefan On 2009-08-24 14:04, James Carman wrote: Although, what you're talking about might be a cool idea for an ajax component. Basically, you'd have a component that edits a list/set of values using text fields

Re: at least one-validation?

2009-08-24 Thread vineet semwal
It's simple to write a custom form validator for that purpose 1)create a list of form components, 2)add those form components to list which need validation, 3)in your custom form validator ,do validation of those form components. -- regards, Vineet Semwal 2009/8/24 Stefan Malmesjö