struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan <dvmlbb...@yahoo.fr>
Subject Feature Request: Highlighting Errors with attributes in form tag
Date Fri, 03 Jun 2005 14:47:49 GMT
Hello, 

I have a feature request about the "Highlighting
Errors" stuff on the HTML Input Tags. (errorStyleX
attributes)

Each input must have an errorStyleX attribute to have
highlighting on it. Wouldn't it be better to have only
one attribute on html:form tag ?

I made a test with a FormTag subclass and TextTag
subclass, and it works, all fields in error are
highlighted without adding an extra attribute on each
input. 

- There must be 3 extra properties on FormTag: for
example inputErrorStyle, inputErrorStyleClass,
inputErrorStyleId. 
- In BaseHandlerTag class, prepareStyles method must
get the parent FormTag, and set each one of its own
errorStyleX  properties with corresponding
intputErrorStyleX properties in parent FormTag, but
only if its own errorStyleX properties are null.
Therefore, a new errorStyleX value in an Input tag can
override inputErrorStyleX of its parent form.

Do you think this is an interresting extra feature to
add ?


	

	
		
_____________________________________________________________________________ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos
! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message