----- Original Message ----- From: "hans albers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 2:09 AM Subject: Error messages: other colo of input field label
> Hi there, > > the error message at the top of the page about the fields > which are wrong is nice, but > > is it possible to change the label color of the input fields > where the user made a wrong input, i've seen this on many > pages in the internet, can i do this with struts? > Cool idea. Hmm. You'd have to write your own custom tag to display the labels on the form. This tag should be *aware* of the ActionErrors stack. When you put a new, field-specific, error on the stack use the properties attribute so the error is tied to that specific field. The error-aware label tag would examine the stack for any errors matching the current label (via the properties attribute) and if one was found it could alter the font color of the label. Works in my head, but I haven't a clue what it would take in the real world to implement. If you do get something like this to work, I'd love to see it. </mark> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>