Hello!
Is there a way in Struts to highlight the HTML form field that has an error?
I mean, changing the style class of the form field, for example. Is there
some feature in Struts that can help me?
Thanks,
JP
You could modify the client-side validation stuff to do this rather
than just alerting.
An easy way of layering this on is to define a compulsory array of
fields and then loop through the form on validation. changing the
borderColor style attribute when you have a match between the element
, otherwise, normal_class.
I know this doesn't exist in Struts but is there something that can do
something like this?
Thanks
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 18 de março de 2004 10:06
To: Struts Users Mailing List
Subject: Re: Way tho highlight
: Way tho highlight error form field
But, how about server side errors that I can't not validate in Javascript?
I tought about something like this:
html:text property=test styleClass=normal_class
styleClassOnError=error_class/
So, if I return an ActionError about the property test, the style
BaseHandlerTag in struts need
some real refactoring!
hope this helps.
ATTA
- Original Message -
From: Joao Batistella [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 4:25 AM
Subject: RE: Way tho highlight error form field
But, how about server
5 matches
Mail list logo