jsf 2 - JSF localization of dynamic expressions -
jsf 2 - JSF localization of dynamic expressions -
this question has reply here:
string concatenation in el dynamic resourcebundle key 3 answersi have bean status field can take 1 of 3 predefined values: active, blocked, deleted. each of those, defined label in properties file:
entity.status.active=active entity.status.blocked=blocked entity.status.deleted=deleted
is there way of displaying entity's status' label? more exactly, there way of combining static 'entity.status.' string dynamic status value key resource bundle? saw this question, doesn't reply needs completely
thanks.
you can utilize concat
function this:
#{myresourcebundle['entity.statut.'.concat(mybean.status)]}
jsf jsf-2
Comments
Post a Comment