You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ralph Churchill <mr...@yahoo.com> on 2004/05/17 17:54:03 UTC
contrib:NumericField
I'm loathe to write this, because I'm *sure* it's
something simple... I'm using contrib:NumericField and
I keep getting errors for exceeding the maximum
length, but as far as I can tell I'm NOT. Here's the
HTML and .page:
<td><input type="text" id="tankNumber" size="5"
jwcid="tankNumber"/></td>
<component id="tankNumber"
type="contrib:NumericField">
<static-binding name="displayName" value="Tank
#"/>
<binding name="value" expression="tankNumber"/>
<binding name="minimum" expression="1"/>
<binding name="maximum" expression="5"/>
<static-binding name="type"
value="java.lang.Long"/>
</component>
When I submit the form, my the delegate (which is just
a org.apache.tapestry.valid.ValidationDelegate) is in
error and has the message: "Tank # must not be larger
than 5". If I print the value out, it's not more than
five digits.
I'm confused.
RMC
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: contrib:NumericField
Posted by Ralph Churchill <mr...@yahoo.com>.
Like I said: easy. Thank You.
RMC
>
> -Filip S. Adamsen
>
> -----Original Message-----
> From: Ralph Churchill [mailto:mrchucho@yahoo.com]
> Sent: Monday, May 17, 2004 5:54 PM
> To: tapestry-user@jakarta.apache.org
> Subject: contrib:NumericField
>
> I'm loathe to write this, because I'm *sure* it's
> something simple... I'm using contrib:NumericField
> and
> I keep getting errors for exceeding the maximum
> length, but as far as I can tell I'm NOT. Here's the
> HTML and .page:
>
> <td><input type="text" id="tankNumber" size="5"
> jwcid="tankNumber"/></td>
>
> <component id="tankNumber"
> type="contrib:NumericField">
> <static-binding name="displayName" value="Tank
> #"/>
> <binding name="value" expression="tankNumber"/>
> <binding name="minimum" expression="1"/>
> <binding name="maximum" expression="5"/>
> <static-binding name="type"
> value="java.lang.Long"/>
> </component>
>
> When I submit the form, my the delegate (which is
> just
> a org.apache.tapestry.valid.ValidationDelegate) is
> in
> error and has the message: "Tank # must not be
> larger
> than 5". If I print the value out, it's not more
> than
> five digits.
>
> I'm confused.
>
> RMC
>
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price.
> http://promo.yahoo.com/sbc/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: contrib:NumericField
Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
It's not the minimum/maximum length, but the least/greatest value.
-Filip S. Adamsen
-----Original Message-----
From: Ralph Churchill [mailto:mrchucho@yahoo.com]
Sent: Monday, May 17, 2004 5:54 PM
To: tapestry-user@jakarta.apache.org
Subject: contrib:NumericField
I'm loathe to write this, because I'm *sure* it's
something simple... I'm using contrib:NumericField and
I keep getting errors for exceeding the maximum
length, but as far as I can tell I'm NOT. Here's the
HTML and .page:
<td><input type="text" id="tankNumber" size="5"
jwcid="tankNumber"/></td>
<component id="tankNumber"
type="contrib:NumericField">
<static-binding name="displayName" value="Tank
#"/>
<binding name="value" expression="tankNumber"/>
<binding name="minimum" expression="1"/>
<binding name="maximum" expression="5"/>
<static-binding name="type"
value="java.lang.Long"/>
</component>
When I submit the form, my the delegate (which is just
a org.apache.tapestry.valid.ValidationDelegate) is in
error and has the message: "Tank # must not be larger
than 5". If I print the value out, it's not more than
five digits.
I'm confused.
RMC
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org