Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-26 Thread Leon Lee
I just tried your code. Like you said, it's really not working. I think this might be a wicket's shortcoming. Maybe you should avoid using ListView when you want to validate your form, or try to use Tapestry. I guess Tapestry does not have this kind of problem. Regards, Leon -- View this message

Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-26 Thread Igor Vaynberg
heh, why dont you go troll somewhere else-IgorOn 6/26/06, Leon Lee [EMAIL PROTECTED] wrote: I just tried your code. Like you said, it's really not working. I think thismight be a wicket's shortcoming. Maybe you should avoid using ListView when you want to validate your form, or try to use

Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-26 Thread itsliang
Hi Igor, You are right. It works very well now. Next time I'll spend more time to read javadoc. Anyway, thanks a lot!! Kind regards, C Chang -- View this message in context: http://www.nabble.com/How-to-add-components-nested-in-the-list-view-to-a-IFormValidator--tf1834645.html#a5059465 Sent

Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-24 Thread itsliang
This is my first time to use wicket. Hence, I don't know whether I did it right or wrong. Anyway, I have reproduced my case below, the first part is java code, and the second part is markup file. Any idea is appreciated, Thanks a lot!! import java.io.Serializable; import java.util.ArrayList;

[Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-23 Thread itsliang
Hi, I have a form that uses ListView to generate some form components, but I don't know how to use a form validator to validate those nested components. Here is the example: public class TestForm extends Form { public TestForm(String arg0) { ListView lv = new

Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-23 Thread Martijn Dashorst
populateItem(...) { ... TestForm.this.add(new TestFormValidator(checkbox, choice)); } should do the trick. Martijn On 6/23/06, itsliang [EMAIL PROTECTED] wrote: Hi, I have a form that uses ListView to generate some form components, but I don't know how to use a form validator to

Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-23 Thread itsliang
I tried, however, I got an exception: WicketMessage: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form, page = test.TestPage, path = 0:form.TestPage$TestForm, isVisible = true, isVersioned = true]] threw an

Re: [Wicket-user] How to add components nested in the list view to a IFormValidator?

2006-06-23 Thread Igor Vaynberg
you forgot to add the form to the page?-IgorOn 6/23/06, itsliang [EMAIL PROTECTED] wrote: I tried, however, I got an exception:WicketMessage: Method onFormSubmitted of interfacewicket.markup.html.form.IFormSubmitListener targeted at component[MarkupContainer [Component id = form, page =