开发者

Primefaces ajax charset problem

开发者 https://www.devze.com 2023-03-25 01:27 出处:网络
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,

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

精彩评论

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