我目前使用resourceBundle變量在我的JSF代碼中獲取文本值,例如像這樣:resourceBundle的變量查找參數?
<h:outputText value="#{resourceBundle.welcomeMessage}" />
有什麼辦法,把消息中的關鍵變量,並給它作爲一個動態參數的資源包?我希望能夠做這樣的事情:
<c:set var="name" value="#{'welcomeMessage'}" />
<h:outputText value="#{resourceBundle.get(name)}" />
'ResourceBundle.getString'? – 2011-02-24 12:31:59