Re: cssClass attribute with <@s.textfield> ignored when inputError happens

2010-12-13 Thread Li Ying
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 com

Re: cssClass attribute with <@s.textfield> ignored when inputError happens

2010-12-13 Thread struts . rgm
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: It's closer -- but I believe that a change needs to be made in t

Re: cssClass attribute with <@s.textfield> ignored when inputError happens

2010-12-13 Thread Li Ying
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?