You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Raymond <pp...@hotmail.com> on 2004/08/18 06:20:24 UTC

question

Dear All,

Sorry if this question is too trivial.

When using something like:

<compoenent id= ...>
   ...
   <message-binding name="value" key="some-key"/>
   ...
</component>

Can "some-key" be a variable (page property) instead of a string literal?


Thanks a lot.
Raymond

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


Re: question

Posted by "Dmitry I. Zubarovsky" <au...@rambler.ru>.
Hello Raymond!

Sorry for my previous email,
what you can do is
<binding name="value" expression="getMessage( getSomeKey() ) "/>

HTH,
Dima


R> Dear All,

R> Sorry if this question is too trivial.

R> When using something like:

R> <compoenent id= ...>
R>    ...
R>    <message-binding name="value" key="some-key"/>
R>    ...
R> </component>

R> Can "some-key" be a variable (page property) instead of a string literal?


R> Thanks a lot.
R> Raymond

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



-- 
Best regards,
 Dmitry                            mailto:aurox@rambler.ru


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


Re: question

Posted by "Dmitry I. Zubarovsky" <au...@rambler.ru>.
Hello Raymond!

Key cannot be a variable

You can try the following instead:
<binding name="value" expression="getSomeKey()"/>

Regards,
Dima

R> Dear All,

R> Sorry if this question is too trivial.

R> When using something like:

R> <compoenent id= ...>
R>    ...
R>    <message-binding name="value" key="some-key"/>
R>    ...
R> </component>

R> Can "some-key" be a variable (page property) instead of a string literal?


R> Thanks a lot.
R> Raymond

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



-- 
Best regards,
 Dmitry                            mailto:aurox@rambler.ru


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