You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martijn Dashorst <ma...@gmail.com> on 2008/06/01 20:14:50 UTC
Re: fieldlabel Component
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 <Ju...@iteratec.de> wrote:
> 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. Can someone help
> me and point me to a solution for this problem?
>
> Regards,
>
> J.
>
> --
> Dr. Jürgen Lind
> iteratec GmbH Fon: +49 (0)89 614551-44
> Inselkammerstrasse 4 Fax: +49 (0)89 614551-10
> 82008 Unterhaching Web: www.iteratec.de
>
> Sitz und Registergericht der iteratec GmbH: München HRB 113 519
> Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: fieldlabel Component
Posted by Jürgen Lind <Ju...@iteratec.de>.
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 <Ju...@iteratec.de> wrote:
>> 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. Can someone help
>> me and point me to a solution for this problem?
>>
>> Regards,
>>
>> J.
>>
>> --
>> Dr. Jürgen Lind
>> iteratec GmbH Fon: +49 (0)89 614551-44
>> Inselkammerstrasse 4 Fax: +49 (0)89 614551-10
>> 82008 Unterhaching Web: www.iteratec.de
>>
>> Sitz und Registergericht der iteratec GmbH: München HRB 113 519
>> Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
--
Mit freundlichen Grüßen,
Jürgen Lind
--
Dr. Jürgen Lind
iteratec GmbH Fon: +49 (0)89 614551-44
Inselkammerstrasse 4 Fax: +49 (0)89 614551-10
82008 Unterhaching Web: www.iteratec.de
Sitz und Registergericht der iteratec GmbH: München HRB 113 519
Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org