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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
