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<mgen...@masslight.net> 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<use...@laliluna.de> 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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to