[jboss-user] [JBoss Seam] - Charset encoding problem in URL parameters
rmemoria
do-not-reply at jboss.com
Thu May 3 00:01:13 EDT 2007
Hi all,
I've created an inputText field that is passed as a URL parameter like that:
In my page I have
<h:inputText value="#{materialHome.nomeMaterial}" />
| <h:commandButton value="Search" action="/admin/materiais.xhtml" />
And in pages.xml I have
<page view-id="/admin/materiais.xhtml">
| <param name="id" value="#{materialHome.id}" />
| <param name="firstResult" value="#{materiais.firstResult}" />
| <param name="nome" value="#{materialHome.nomeMaterial}" />
| </page>
It works fine, but if I use accents I get problems like this:
If I insert the work balão
After a post I get the inputText with the word balão
I also tried to include in components.xml
<web:character-encoding-filter encoding="UTF-8"
| override-client="true"
| url-pattern="*.seam"/>
with several variations of the encoding param
Any sugestion?
Just for testing, if in pages.xml I remove the line <param name="nome" value="#{materialHome.nomeMaterial}" /> the accents are properly preserved in the inputText.
Thanks,
Ricardo Memória
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042695#4042695
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042695
More information about the jboss-user
mailing list