You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Strand <ma...@entcap.se> on 2006/04/13 00:44:25 UTC
Re: Localized messages gotten through ognl.
Try this:
foo="ognl:messages.getMessage(fact.name)"
the "message:" prefix is just a shorter syntax for the above expression.
Martin
On Thu, 13 Apr 2006 02:25:49 +0300, Apache
<ap...@ss78.shared.server-system.net> wrote:
> I have a case when the key for the message is returned from the ognl
> expression like this:
> message:ognl:fact.name
> Where fact.name is mapped to my bean and the name is the key into my
> application.properties.
> How do I do this?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Localized messages gotten through ognl.
Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,
Nitpicking here, sorry, but there's an important difference between
using message:key and ognl:messages.getMessage(key): The former is a
little faster as Tapestry knows that the result is invariant. In the
latter case, Tapestry goes through some checks to see if this is the
case. : )
-Filip
Martin Strand skrev:
> Try this:
>
> foo="ognl:messages.getMessage(fact.name)"
>
> the "message:" prefix is just a shorter syntax for the above expression.
>
> Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org