Message display in JSF

In my message properties file, I have some like

gender.f= Female

gender.m= Male

The gender attribute of my user class store the gender information as f or m.

How I display the gender with a JSF tag?

I know it can be done with JSTL with the fmt tag.

Thanks for your inputs in advance.

Message was edited by:

vwuvancouver

[376 byte] By [vwuvancouvera] at [2007-11-27 9:48:58]
# 1
Or what is the equivalent of<fmt:message key="gender.${user.gender}"/>in JSF?
vwuvancouvera at 2007-7-13 0:17:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hello,

Let's supose your message.properties is:

genderF=Female

genderM=Male

in your jsp will be like this:

#{message.genderM}

In this example I loaded the resource bundle setting message as name.

Seeu..

marcossousaa at 2007-7-13 0:17:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Thanks for your input. But, that is not what I am looking for. I need to construct the key with a dynamic value, a user attribute in this case.
vwuvancouvera at 2007-7-13 0:17:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...