I also ran into similar problems. I had a NumberValidator and the
default message was: '0' is not in the range 1-65535 (limits which I had
set), which is nice and all but it would be nice if it mentioned which
field contained the invalid value instead. For example, I would have
preferred a default of "Field 'port' must have values in the range 1-65535".
Just my 2 cents...
Gili
Ingram Chen wrote:
> I have a table of data need to do form submission:
>
> Name Data
> ===================================
> Item1 [ ]
> Item2 [ ]
>
> new ListView("items", items) {
> populateItem(ListItem item) {
> item.add(new Lebel("name")
> item.add(new RequiredTextField("data"));
> }
> } ;
>
> if I leave all data blank, I will got multiple messages with the same
> messages:
>
> 'data' is required.
> 'data' is required.
>
> which is useless for client.... It seems that RequiredValidator,
> NumberValidator... etc
> don't allow to do things like:
>
> data.RequiredValidator= Data of ${0} is required.
>
> and produce messages as:
>
> Data of Item1 is required.
> Data of Item2 is required.
>
> Should I need to write my own Validator ? if so, how to do that ?
>
> Thanks.
>
> --
> Ingram Chen
> Java [EMAIL PROTECTED]
> Institue of BioMedical Sciences Academia Sinica Taiwan
> blog: http://www.javaworld.com.tw/roller/page/ingramchen
>
>
> ------------------------------------------------------------------------
>
> 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?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
signature.asc
Description: OpenPGP digital signature
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?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
