fieldlabel Component

2008-06-01 Thread Jürgen Lind
Hi, I am looking for the solution for a quite common problem: I want the label of a form element to change its color if the input is invalid. Searching the web I found some very old postings of Igor and Jonathan discussing this matter; however, I have not found any links to the final solution.

Re: fieldlabel Component

2008-06-01 Thread Jürgen Lind
Thx, J. Martijn Dashorst wrote: label.add(new AttributeModifier(class, true, new Model() { public Object getObject() { return formcomponent.isValid() ? : error; }}); On Sun, Jun 1, 2008 at 8:05 PM, Jürgen Lind [EMAIL PROTECTED] wrote: Hi, I am looking for the solution for a quite common

Re: fieldlabel Component

2008-06-01 Thread Martijn Dashorst
label.add(new AttributeModifier(class, true, new Model() { public Object getObject() { return formcomponent.isValid() ? : error; }}); On Sun, Jun 1, 2008 at 8:05 PM, Jürgen Lind [EMAIL PROTECTED] wrote: Hi, I am looking for the solution for a quite common problem: I want the label of a form