You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Erik Hatcher <er...@ehatchersolutions.com> on 2003/11/04 22:47:02 UTC

using message resources in .page file

How can you use a message resource lookup in a .page file expression?   
For example, suppose you have jwcid="insertLabel" which binds to an 
Insert component defined in the .page file.  How could it insert the 
value of a message resource?  Using a binding to an expression doesn't 
work as it assumes its an OGNL expression.... so the "message:..." 
trick doesn't work.  It'll work with the implicit attributes using 
@Insert in the .html file and a value="message:..." I believe, though.

Yes, we can use the <span key="..."/> and that works fine.... I was 
just wondering how to do it explicitly in a .page file.

Thanks,
	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: using message resources in .page file

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
duh, thanks. i should have seen that myself and was just going off 
looking over a co-workers shoulder and not seeing it first hand.


On Tuesday, November 4, 2003, at 04:51  PM, Harish Krishnaswamy wrote:

> There is a message-binding that you can use. Try <message-binding 
> name="parameterName" key="messageKey"/>.
>
> -Harish
>
> Erik Hatcher wrote:
>
>> How can you use a message resource lookup in a .page file expression? 
>>   For example, suppose you have jwcid="insertLabel" which binds to an 
>> Insert component defined in the .page file.  How could it insert the 
>> value of a message resource?  Using a binding to an expression 
>> doesn't work as it assumes its an OGNL expression.... so the 
>> "message:..." trick doesn't work.  It'll work with the implicit 
>> attributes using @Insert in the .html file and a value="message:..." 
>> I believe, though.
>>
>> Yes, we can use the <span key="..."/> and that works fine.... I was 
>> just wondering how to do it explicitly in a .page file.
>>
>> Thanks,
>>     Erik
>>
>>
>> ---------------------------------------------------------------------
>> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: using message resources in .page file

Posted by Harish Krishnaswamy <hk...@comcast.net>.
There is a message-binding that you can use. Try <message-binding 
name="parameterName" key="messageKey"/>.

-Harish

Erik Hatcher wrote:

> How can you use a message resource lookup in a .page file 
> expression?   For example, suppose you have jwcid="insertLabel" which 
> binds to an Insert component defined in the .page file.  How could it 
> insert the value of a message resource?  Using a binding to an 
> expression doesn't work as it assumes its an OGNL expression.... so 
> the "message:..." trick doesn't work.  It'll work with the implicit 
> attributes using @Insert in the .html file and a value="message:..." I 
> believe, though.
>
> Yes, we can use the <span key="..."/> and that works fine.... I was 
> just wondering how to do it explicitly in a .page file.
>
> Thanks,
>     Erik
>
>
> ---------------------------------------------------------------------
> 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