yes it would, this is how i wanted our default error messages to work, but i guess other core committers dont think people use setLabel() that often on form components and looks like they were right

-Igor


On 6/29/06, cowwoc <[EMAIL PROTECTED]> wrote:

        Ah! Would this also work for what I just posted too?

Gili

Igor Vaynberg wrote:
> if you do textfield.setLabel(new ResourceModel("label.field1")) and
> define validator message as ${label} is required which it already is
> defined like that i think you will get the desired message with key
> label.field1 in the properties file defning the name of the field, or do
> setLabel(new Model("first name"))
>
> -Igor
>
>
> On 6/29/06, *Ingram Chen* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> 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
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>
>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
> ------------------------------------------------------------------------
>
> 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
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user



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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to