Hi, I'm learning wicket and I have a hard time determining the resourceKey of
a component.
In my code:
Form form = new Form("myForm") ....
TextField weight = new TextField("weight", Integer.class);
weight.setRequired(true);
weight.add(NumberValidator.minimum(0));
form.add(weight);
Since I call
weight.setRequired(true);
weight.add(NumberValidator.minimum(0));
I know I need at least the resourceKeys for these two cases.
By looking into the NumberValidator.java source, I can find the resourceKey
for 'minimum' is "myForm.weight.NumberValidator.minimum". I know
setRequired corresponds to 'myForm.weight.Required' from other example.
But what about other resourceKey? How do I find what they are? For
example, entering 'xyz' will result in 'xyz' is not a valid Integer. How to
find what this resourceKey is?
In general, what is the way to find out all possible error resourceKeys?
--
View this message in context:
http://www.nabble.com/How-to-find-all-error-resourceKeys-of-a-form-field--tp15577859p15577859.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]