Re: small trouble with the validator

2004-02-02 Thread Hubert Rabago
From
http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes
:

"And, of course, while the DynaActionForm may support various binary types,
properties used with the html:text tag should still be String properties."

Yes, use java.lang.String then try your form again.  Your depends="required"
should work as expected now.  Er, you might wanna try out
depends="required,float".

--- Nathan Maves <[EMAIL PROTECTED]> wrote:
> All of my other forms validate perfect.  This form will only validate 
> the name field and not the two breakpoint fields.
> 
> I have tried everything  Any ideas?
> 
>  type="dashboard.presentation.actions.admin.UpdateMetricAction" 
> name="MetricForm" validate="true" input="/pages/admin/EditMetric.jsp" 
> scope="request" attribute="metricForm">
>  path="/pages/admin/EditMetric.jsp" />
>  path="/pages/admin/EditMetric.jsp" />
> 
> 
>  type="org.apache.struts.validator.DynaValidatorActionForm">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> maxlength150
> 
> 
> 
> 
> maxlength1300
> 
> 
> 
> 
> 
> 
>  key="app.metric.redBreakpoint" />
> 
> 
> 
> 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: small trouble with the validator

2004-02-02 Thread Nathan Maves
So are you saying that it is because I declared it as a java.lang.Float?

When I switch it to a java.lang.String will it works!

So the real question is how to validate a float to be required?

Nathan
On Feb 2, 2004, at 1:32 PM, Larry Meadors wrote:
It is because beanutils converts anything that is invalid to a 0, and
therefore, it is present, meeting the requirement for the required
dependancy.
Stupid, huh?

Larry

[EMAIL PROTECTED] 02/02/04 1:25 PM >>>
All of my other forms validate perfect.  This form will only validate
the name field and not the two breakpoint fields.
I have tried everything  Any ideas?





















maxlength150




maxlength1300









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: small trouble with the validator

2004-02-02 Thread Larry Meadors
It is because beanutils converts anything that is invalid to a 0, and
therefore, it is present, meeting the requirement for the required
dependancy.

Stupid, huh?

Larry

>>> [EMAIL PROTECTED] 02/02/04 1:25 PM >>>
All of my other forms validate perfect.  This form will only validate 
the name field and not the two breakpoint fields.

I have tried everything  Any ideas?
























maxlength150




maxlength1300











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



small trouble with the validator

2004-02-02 Thread Nathan Maves
All of my other forms validate perfect.  This form will only validate 
the name field and not the two breakpoint fields.

I have tried everything  Any ideas?























maxlength150




maxlength1300










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]