struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: FW: html:text
Date Thu, 06 Jul 2006 18:36:27 GMT
Does the 'Form' form bean have a property 'hrs'? How is it declared? 
What is the type and base type (parent class) of the form bean? We 
really need to see the relevant parts of your struts-config.xml (form 
bean declaration and action mappings) to tell what's happening.

L.

fea jabi wrote:
> 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" <zyxrm@hotmail.com>
>> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
> 
> _________________________________________________________________
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message