struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: FieldChecks.validateMinLengths()
Date Tue, 01 Jul 2003 20:31:04 GMT
I'm sorry, it was my fault. I had forgotten to replace the 
validator-rules.xml with the new version.

David Graham wrote:
> Remove the <field bundle> attribute because that's not supported.  What
> text are you typing into the input box?
> 
> David
> 
> --- Adam Hardy <ahardy.struts@cyberspaceroad.com> wrote:
> 
>><formset>
>>     <form name="sectionForm">
>>       <field property="id"
>>         depends="integer">
>>         <arg0   key="sections.validate.id"/>
>>       </field>
>>       <field property="title"
>>         depends="minlength,maxlength"
>>         bundle="alternate">
>>         <arg0   key="sections.validate.title"/>
>>         <arg1   key="${var:minlength}" name="minlength"
>>           resource="false"/>
>>         <arg2   key="${var:maxlength}" name="maxlength"
>>           resource="false"/>
>>         <var>
>>           <var-name>maxlength</var-name>
>>           <var-value>16</var-value>
>>         </var>
>>         <var>
>>           <var-name>minlength</var-name>
>>           <var-value>2</var-value>
>>         </var>
>>       </field>
>>     </form>
>>   </formset>
>>
>>Copied more or less from the struts-example app
>>
>>David Graham wrote:
>>
>>>What is your validation setup for that field and what are you entering
>>>into it?  The struts-validator app seems to be working fine.
>>>
>>>David
>>>
>>>
>>>--- Adam Hardy <ahardy.struts@cyberspaceroad.com> wrote:
>>>
>>>
>>>>I shutdown and deleted my deploys and builds and recompiled and 
>>>>redeployed everything, and I have the html:javascript static=true tag
>>
>>in
>>
>>>>the staticJavascript.jsp which I link into my page with the script
>>
>>tag, 
>>
>>>>so I am pretty confident I don't have any old version of the static 
>>>>javascript cached or generated anywhere. (I am on 1.1 final)
>>>>
>>>>The javascript is still giving me "must be min length" validation
>>
>>errors
>>
>>>>when I try to submit a blank field though.
>>>>
>>>>Should the static javascript taglib still be in a seperate file like
>>
>>in 
>>
>>>>the example app?
>>>>
>>>>Adam
>>>>
>>>>David Graham wrote:
>>>>
>>>>
>>>>>Client and server checks should be the same in 1.1 final.  If you
>>>>>generated the static javascript and stored it in a file, make sure
>>
>>you
>>
>>>>>regenerate it after upgrading to 1.1 final.
>>>>>
>>>>>David
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>SBC Yahoo! DSL - Now only $29.95 per month!
>>>http://sbc.yahoo.com
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message