You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ed Cohen <ec...@powersteeringsoftware.com> on 2005/05/03 22:54:10 UTC
Getting StringValidator's messages from your own .property file
How do I replace the StringValidator's messages with ones in my own
.property file?
Also, a quick ognl question. In a .page file, is there a way to get to
the page's getMessage("xyz") method?
Thanks for the help.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Getting StringValidator's messages from your own .property file
Posted by Paul Ferraro <pm...@columbia.edu>.
Ed Cohen wrote:
>How do I replace the StringValidator's messages with ones in my own
>.property file?
>
>
>
<bean name="..." class="org.apache.tapestry.valid.StringValidator">
<set-property name="minimumLengthMessage"
expression="myMinimumLengthMessage"/>
</bean>
Implement getMyMinimumLengthMessage() accordingly.
>Also, a quick ognl question. In a .page file, is there a way to get to
>the page's getMessage("xyz") method?
>
>
>
Instead of an ognl expression, use the message binding:
http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/spec.message-binding.html
>Thanks for the help.
>
>
>---------------------------------------------------------------------
>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: Getting StringValidator's messages from your own .property file
Posted by Alberto Lepe <al...@gmail.com>.
you can call at the .page:
expression="getMessage('xyz')"
(don't forget the simple quotes inside)
2005/5/3, Ed Cohen <ec...@powersteeringsoftware.com>:
>
> How do I replace the StringValidator's messages with ones in my own
> .property file?
>
> Also, a quick ognl question. In a .page file, is there a way to get to
> the page's getMessage("xyz") method?
>
> Thanks for the help.
>
> ---------------------------------------------------------------------
> 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