can somene help me with this please?

how to do validation in validator.xml

<formset>
       <form name="Form">
           <field property="hrs" depends="integer,validwhen">
               <msg name="integer" key="lbl.notvalidnumber"/>
               <msg name="validwhen" key="lbl.notvalidnumber"/>
               <var>
                   <var-name>test</var-name>
                   <var-value>(*this* >= 0)</var-value>
               </var>
           </field>
       </form>
   </formset>

Where hrs is the attribute in the row object of the table. Even when I enter string value in the text field I see no error messages.


From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: html:text
Date: Wed, 05 Jul 2006 15:36:47 -0400

In a table in one of the columns there are <html:text>

is it required that each input item has a corresponding form-bean property?


by using the below does it take all the user entered values in the column??

Each row is an object and sessionScope.Form.hrs is the list of these objects.

<display:table name="sessionScope.Form.hrs" id="rows" requestURI="PrepareAction.do" >
........................
.....................
<display:column titleKey="lbl.hrs">
       <c:if test="${rows.hrs != null}">
<html:text name="rows" property="hrs" errorStyleClass="errormsg"/>
        </c:if>
</display:column>
</display:table>

Thanks.

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/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]

Reply via email to