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
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
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
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;
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
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
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
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 =