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.

Michael Gentry schrieb:
Hi everyone,

I'm trying to use the message catalog to look up values in a loop.  I
have a List of enums and bind the loop's source to contentAreas and
the value to contentArea.  I'm then trying to extract a value from the
message catalog with:

${message:${contentArea}-name}

I was hoping ${contentArea} would get replaced by the value of my enum
(let's say FOO) and get substituted so that it then did a
${message:FOO-name}, but instead I get this error:

[[missing key: ${contentArea.name]]-name}

I also tried: ${message:${contentArea}}

My .properties file looked something like this:

FOO = Some Value
FOO-name = Some Value

Can this be done?

Thanks,

mrg

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





--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-----
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de



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

Reply via email to