You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Ferraro <pm...@columbia.edu> on 2004/04/13 00:13:37 UTC
Re: General purpose OGNL usage not available?
Try this:
<input jwcid="@Any" type="submit" value="ognl:getMessage('MyButtonLabel')"/>
Paul Ferraro
Leif Stainsby wrote:
>Hi,
>
>I'm modifying an app for I18N using getMessage(), and I have noticed that
>this:
>
> <input type="submit" value="ognl:getMessage('MyButtonLabel')"/>
>
>yields a button label of:
>
> ognl:getMessage('MyButtonLabel')
>
>Ok, so it seems that OGNL usage is restricted to elements which are
>recognized by the Tapestry engine; likely this means any element with the
>'jwcid' attribute. This would appear to be a reasonable restriction.
>However, what do we do for the simple case as shown above? It would be nice
>to have access to the power of OGNL in these cases as well.
>
>Is there a simple way of achieving this button label substitution without
>resorting to another level of components?
>
>...Leif
>
>Note: I looked into the 'Button' component, but it reserves the 'type'
>attribute and so can't be used in this case.
>
>
>---------------------------------------------------------------------
>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