can someone help me with this please.
Thanks.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: errorStyleClass not working
Date: Mon, 17 Jul 2006 11:44:49 -0400
struts-config
<form-bean name="Form" type="org.apache.struts.validator.DynaValidatorForm"
dynamic="true">
<form-property name="hrs" type="java.util.ArrayList"/>
....................
.....................
</form-bean>
JSP:
<html:form action="DispatchAction.do" method="post">
<fmt:setBundle var="appbundle" basename="MessageResources"/>
<logic:messagesPresent message="true">
<UL>
<html:messages id="error" message="true">
<LI><c:out value="${error}"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
<display:table name="sessionScope.Form.hrs" id="rows"
requestURI="PrepareAction.do" >
....................
.......................
<display:column titleKey="lbl.hrs">
<c:set var="ggggg" value="hrs[${rows_rowNum -1}].adHrs"/>
<c:if test="${rows.adHrs != null}">
<html:text property="<%=
pageContext.getAttribute("ggggg").toString() %>"
errorStyleClass="errormsg"/>
</c:if>
</display:column>
</display:table>
</html:form>
validation.xml
<formset>
<form name="Form" >
<field property="adHrs" indexedListProperty="hrs"
depends="integer,validwhen">
<msg name="integer" key="lbl.notvalid"/>
<msg name="validwhen" key="lbl.notvalid"/>
<var>
<var-name>test</var-name>
<var-value>(*this* >= 0)</var-value>
</var>
</field>
</form>
</formset>
the error messages does display at the top. But the input field is not
highlighted.
Need help with highlighting.
Thanks.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]