I have a problem with the dataTable internationalization. More specifically, let's focus on the firstPageLinkLabel attribute. When I set some localized label there, on first display, the label is shown properly. However, after postback, all I'm getting are question marks (?????). I use something like the following:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
...
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</h:head>
<h:body>
...
<h:form>
....
<p:dataTable id="theTable" firstPageLinkLabel="[[[some text in cyrillic here but if I put cyrillic, I get an error when I submit the topic to the forum]]]"...>
...
</p:dataTable>
<p:commandButton value="Postback" ajax="true" update="theTable" actionListener="#{someBackingBean.postbackListener}"/>
...
The action listener on the button doesn't do anything. If I remove it, the label still turns into question marks. I guess the encoding of the Ajax response is not okay.
Can you give me some clue what I can do to prevent this?
(In the meantime, I will try to figure out what's wrong.)