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 answers

i 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

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -