Hi,
I'm struggling with a little internationalization issue in one of my apps. The story goes like this:
I have a datatable which displays records, and a selectOneMenu in order to select a column of the dataTable to be filtered for. The selectOne is fed with SelectItems which are filled according to the actual locale in the backing bean on DataRefresh time.
Now, when the user changes the locale the contents of the selectOne stay in the old locale until the page is rerendered. This is quite logical and expected.
Of course I want that to change.
So I tried writing an own selectOne which uses selectItems which contain references to languageFile entries in order to be able to change them without rerendering.
Here's what I tried
<select id="j_id5:filterSelector" name="j_id5:filterSelector" size="1">
<c:forEach var="item" items="#{gridBean.filterFields}">
<option value="#{item.Value}">#{msg[item.Label]}</option>
</c:forEach>
</select>
Sadly JSF tells me the item does not have a Label or Value property, which I hardly believe. ;)
Does anyone's got an idea how to access thise properties this way?