When a validation error occurs with the css_xhtml theme, the CSS class for a
form input does not have the correct class attributes, if a cssClass has been
supplied. Instead of class inputError joining the existing class which is
specified by the cssClass form tag attribute, two separate class
I read the source code of [simple/css.ftl],
it looks like trying to combine [cssClass] and [cssErrorClass].
So you can try:
@s.textfield name=port value=port key=service.port maxsize=5
cssClass=prop-port
cssErrorClass=inputError
/
see if the result is what you want?
I did try that -- but unless simple/text.ftl changes, there will *still* be an
unwanted class='inputError' before my cssClass and cssErrorClass attributes
are handled by css.ftl. Your example produces the following broken tag:
input name=port value= maxsize=5 class=inputError class=prop-port
I read the source of [simple/text.ftl], and found nothing
looks like rendering the extra [class=inputError] attribute.
Can you tell me where it is?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
4 matches
Mail list logo