Hello,
I posted this on user list, but maybe dev list is more
appropriate, sorry if not.
I have a suggesion about errors highlighting on the
HTML inputs.
Some input tags have errorStyle, errorStyleClass,
errorStyleId attributes, and developper must define
one of them on each input to have highlighting on
error.
It would be more simple for developper if he had only
one attribute to define on form tag.
This could be done by:
- Adding 3 more properties on FormTag:
inputErrorStyle, inputErrorStyleClass,
inputErrorStyleId (for example).
- Modififying prepareStyles method in BaseHandlerTag
class. Input tag could get its parent FormTag, and set
each one of its own errorStyle property with
corresponding intputErrorStyle property of parent
FormTag:
protected String prepareStyles() throws JspException {
FormTag formTag =
(FormTag)pageContext.getAttribute(Constants.FORM_KEY,
PageContext.REQUEST_SCOPE);
if (formTag != null) {
if (errorStyle == null) {
errorStyle = formTag.getInputErrorStyle();
}
if (errorStyleClass == null) {
errorStyleClass =
formTag.getInputErrorStyleClass();
}
if (errorStyleId == null) {
errorStyleId =
formTag.getInputErrorStyleId();
}
}
// ... Identical current code
New setting are made only if input's errorStyleX
properties are null. This way, an errorStyleX value in
Input tag can override inputErrorStyleX of its parent
form.
Is this valid ?
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
T�l�chargez cette version sur http://fr.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]