If anyone cares, this is how I'm currently doing it.

.java:

    @Inject
    private Messages messages;

    public String getEnumName(Enum<?> e)
    {
        return messages.get(e + ".name");
    }

.tml:

${getEnumName(contentArea)}

mrg


On Fri, Aug 28, 2009 at 8:49 AM, Michael Gentry<[email protected]> wrote:
> Yeah, this is what I'm currently doing, but I thought there might be a
> way to do it in the template.
>
> Thanks,
>
> mrg
>
>
> On Fri, Aug 28, 2009 at 6:45 AM, Sebastian
> Hennebrueder<[email protected]> wrote:
>> You may provide a @Property for your current loop value
>> and a
>> public String getMyMessage() method which builds the key and returns the
>> message from the bundle using this key.
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to