If I don't remember wrong, you cannot nest %{} in the same expression. Try:
%{getText('status.' +name())}
musachy
On Fri, Jan 2, 2009 at 11:13 AM, Tom Pop <[email protected]> wrote:
> Hello,
>
> I have these keys in resources:
>
> status.active=Active
> status.done=Done
>
> I have enum instances for each status in list and want to display it in
> select control:
>
> <s:select name="item.status" list="statusList" listKey="name()"
> listValue="%{getText('status.%{name()}')}" />
>
> This works except of the listValue parameter.
> This works:
> listValue="%{getText('status.active')}"
> listValue="name()"
>
> but how can I parametrize the resource key with the value of enum item?
>
> Thanks a lot.
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]