You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Justin Stanczak <js...@vinu.edu> on 2004/12/06 05:41:25 UTC
java.lang.Double Validator?
How do you make the validation work with a Double? It keeps telling me
it needs to be integer.
--
Justin Stanczak, Web Manager
Vincennes University
812-888-5813
"All that is necessary for the triumph of evil is that good men do nothing." Edmund Burke
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
custom action on table headers
Posted by Andreas Vombach <an...@psi.ch>.
Is it (easily) possible to assign custom actions to a SimpleTableColumn
component? The "normal" behaviour on clicking on a table column header
is sorting, I would like to call a custom method on it.
Cheers Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: java.lang.Double Validator?
Posted by Justin Stanczak <js...@vinu.edu>.
Paul Ferraro wrote:
> You can set the valueType property of your NumberValidator, e.g.
>
> <bean name="numberValidator"
> class="org.apache.tapestry.valid.NumberValidator
> <http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/valid/NumberValidator.html>">
>
> <set-property name="valueType" expression="java.lang.Double"/>
> </bean>
>
> Paul
>
> Justin Stanczak wrote:
Ah, thank you. This answer actually tells me a lot. For some reason I
wasn't making the connection to the api like I should have. As you can
tell, I'm new to Tapestry and have been trying to learn it as fast as I
can. I got all the documents and stuff, but this one just escaped me.
Just in the last few days I have been starting to get a good understanding.
>
>> How do you make the validation work with a Double? It keeps telling
>> me it needs to be integer.
>>
>
>
> ---------------------------------------------------------------------
> 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
Re: java.lang.Double Validator?
Posted by Justin Stanczak <js...@vinu.edu>.
Paul Ferraro wrote:
> oops... You need to use single quotes so that OGNL will recognize it
> as a string...
>
> <bean name="doubleValidator" lifecycle="page"
> class="org.apache.tapestry.valid.NumberValidator">
> <set-property name="required" expression="true"/>
> <set-property name="valueType" expression="'java.lang.Double'"/>
> </bean>
Yes, thank you. I think I say that in the book somewhere now that you
say it.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: java.lang.Double Validator?
Posted by Justin Stanczak <js...@vinu.edu>.
Thank you once again. It's those little things that throw us newbies
off. : ) Just a few more days any I'll have Tapestry mastered. Famous
last words.
Paul Ferraro wrote:
> oops... You need to use single quotes so that OGNL will recognize it
> as a string...
>
> <bean name="doubleValidator" lifecycle="page"
> class="org.apache.tapestry.valid.NumberValidator">
> <set-property name="required" expression="true"/>
> <set-property name="valueType" expression="'java.lang.Double'"/>
> </bean>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: java.lang.Double Validator?
Posted by Paul Ferraro <pm...@columbia.edu>.
oops... You need to use single quotes so that OGNL will recognize it as
a string...
<bean name="doubleValidator" lifecycle="page"
class="org.apache.tapestry.valid.NumberValidator">
<set-property name="required" expression="true"/>
<set-property name="valueType" expression="'java.lang.Double'"/>
</bean>
Justin Stanczak wrote:
> Paul Ferraro wrote:
>
>> You can set the valueType property of your NumberValidator, e.g.
>>
>> <bean name="numberValidator"
>> class="org.apache.tapestry.valid.NumberValidator
>> <http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/valid/NumberValidator.html>">
>>
>> <set-property name="valueType" expression="java.lang.Double"/>
>> </bean>
>>
>> Paul
>>
> Well as simple as this seems, I can't get this to work. I get this error:
>
> Unable to read expression '<parsed expression>' of com...........
>
> com.que.car.EditCarsAddUpdate$Enhance_7.java
>
> name: java
>
> Here is what I have:
>
> <bean name="doubleValidator" lifecycle="page"
> class="org.apache.tapestry.valid.NumberValidator">
> <set-property name="required" expression="true"/>
> <set-property name="valueType" expression="java.lang.Double"/>
> </bean>
>
> I'm not seeing why this doesn't work. I'd also like someone to point
> out where I can learn Tapestry better where I'm having issues. I must
> not be understanding something. I have the Tapestry in Action, and
> several tutorials from the site I've read through already.
>
> ---------------------------------------------------------------------
> 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
Re: java.lang.Double Validator?
Posted by Justin Stanczak <js...@vinu.edu>.
Paul Ferraro wrote:
> You can set the valueType property of your NumberValidator, e.g.
>
> <bean name="numberValidator"
> class="org.apache.tapestry.valid.NumberValidator
> <http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/valid/NumberValidator.html>">
>
> <set-property name="valueType" expression="java.lang.Double"/>
> </bean>
>
> Paul
>
Well as simple as this seems, I can't get this to work. I get this error:
Unable to read expression '<parsed expression>' of com...........
com.que.car.EditCarsAddUpdate$Enhance_7.java
name: java
Here is what I have:
<bean name="doubleValidator" lifecycle="page"
class="org.apache.tapestry.valid.NumberValidator">
<set-property name="required" expression="true"/>
<set-property name="valueType" expression="java.lang.Double"/>
</bean>
I'm not seeing why this doesn't work. I'd also like someone to point out
where I can learn Tapestry better where I'm having issues. I must not be
understanding something. I have the Tapestry in Action, and several
tutorials from the site I've read through already.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: java.lang.Double Validator?
Posted by Paul Ferraro <pm...@columbia.edu>.
You can set the valueType property of your NumberValidator, e.g.
<bean name="numberValidator"
class="org.apache.tapestry.valid.NumberValidator
<http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/valid/NumberValidator.html>">
<set-property name="valueType" expression="java.lang.Double"/>
</bean>
Paul
Justin Stanczak wrote:
> How do you make the validation work with a Double? It keeps telling me
> it needs to be integer.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org