segunda-feira, 11 de junho de 2012

Problema com acentuação no JSF

Tente colocar no <head> do seu template:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
fica assim:
<h:head>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />     <link href="#{facesContext.externalContext.request.contextPath}/resources/css/default.css" rel="stylesheet" type="text/css" />     <link href="#{facesContext.externalContext.request.contextPath}/resources/css/cssLayout.css" rel="stylesheet" type="text/css" />     <title>Sistema INSG</title></h:head>
Se a acentuação continuar com o problema tente colocar no sun-web.xml:
<parameter-encoding default-charset="UTF-8"/>
fica assim:
<sun-web-app error-url="">     <parameter-encoding default-charset="UTF-8"/>     <context-root>/SeuSistema</context-root>    <class-loader delegate="true"/>   <jsp-config>          <property name="keepgenerated" value="true">               <description>Keep a copy of the generated servlet class' java code.</description>          </property>     </jsp-config>  </sun-web-app>

Nenhum comentário:

Postar um comentário