We have a lot of standard validation classes
for the basic types the all start with the basic type name:

NumberValidator or DateValidator
those validators do all standaard stuff (min,max or range)

and yes the property files are still used. And the are explaind in the javadoc:

 * If that is not the case then an error message will be generated
     * with the key "DateValidator.range" and the messages keys that
     * can be used are:
     * <ul>
     * <li>${minimum}: The minimum date</li>
     * <li>${maximum}: The maximum date</li>
     * <li>${input}: the input the user did give</li>
     * <li>${name}: the name of the component that failed</li>
     * <li>${label}: the label of the component - either comes from
     * FormComponent.labelModel or resource key [form-id].[form-component-id] in
     * that order</li>

What kind of exception are you talking about?

johan


On 5/15/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
Is there a good breakdown of how to use the validation classes
anywhere?  I see an example of RequiredValidator in the wiki but none
of the others.

Since RequiredValidator is depreciated and we need more control
anyhow, we're looking at using some of the others.  I can get them to
*work* somewhat...but am having some problems.

Are the .properties files still used for validation messages?  How
should I prevent Exceptions when using the NumberValidator?  I guess
the javadoc is not quite enough for me in this case.

I'd be happy to add to the wiki if I knew some details on this.

Thanks!

-v


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to