开发者

Primefaces ajax charset problem

In my earlier post I managed to solve the problem. But, on forms where I tried to use P开发者_C百科rimefaces' commandButton instead of "regular" commandButton, I encountered a new problem. Somehow, Primefaces ignore charset settings (even when custom Filter is included in chain) and wrong charset text is passed to managed bean's actionListener method. If ajax attribute is set to false, everything works fine, problem only occurs when ajax request is sent.

Does anybody have an idea how to solve this problem?


Your question is one year old and I'm not sure if you already solved this problem, but I had the same problem and solved by putting the attribute charset on p:commandLink.

Example:

<p:commandLink action="#{myController.addItem(item)}" charset="ISO-8859-2">

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜