Olá Pessoal,
Estou com o seguinte problema no código abaixo. Quando acesso a página, ela esta com a configuração toda correta na acentuação e caracteres especiais, mas quando abro o p:dialog, para utilizar a função de busca e fechar clicando no commandLink abaixo, os campos p:inputText ficam todos desconfigurados.
<h:commandLink action="#{participanteFace.doConfirmaBuscaCondPag}" onclick="dlgcondpag.hide();">
<p:graphicImage value="#{pageContext.servletContext.contextPath}/resources/imagens/confirmar.png" width='15' height="15"/>
<f:setPropertyActionListener target="#{participanteFace.selectedBuscaCondPag}" value="#{item}"/>
</h:commandLink>
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
template="#{pageContext.servletContext.contextPath}/templates/padraoTemplate.xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<ui:define name="conteudo">
<f:view contentType="text/html; charset=ISO-8859-1">
<h:body>
<h:form id="fmEditar" >
<p:panel header="Editar participante - #{participanteFace.selectedBean.nomefantasia}" style="background-color: #dddddd">
<table>
<tr>
<td>
<h:commandLink action="#{participanteFace.doFinishEditParticipante()}" title="Salvar" id="bt_salvar">
<p:graphicImage value="#{pageContext.servletContext.contextPath}/resources/imagens/confirmar.png" width="25" height="25" alt="Salvar" />
</h:commandLink>
</td>
<td>
<h:commandLink immediate="true" action="#{participanteFace.doListParticipante()}" title="Cancelar" id="bt_cancelar">
<p:graphicImage value="#{pageContext.servletContext.contextPath}/resources/imagens/cancelar.png" width="25" height="25" alt="Cancelar" />
</h:commandLink>
</td>
</tr>
</table>
<h2>Dados de identificação</h2>
<table>
<tr>
<td>Código</td>
<td><h:outputText value="#{participanteFace.selectedBean.codigo}" style=" color: red"/></td>
<td>Nome</td>
<td><p:inputText id="idCodigo" value="#{participanteFace.selectedBean.razaosocial}" size="50"/></td>
</tr>
<tr>
<td>Nome Fantasia</td>
<td><p:inputText value="#{participanteFace.selectedBean.nomefantasia}" size="30"/></td>
</tr>
</table>
<h2>Dados gerais</h2>
<table>
<tr>
<td>Cond. de pagamento</td>
<td>
<p:selectOneMenu id="idCondPag" style="width: 245px" value="#{participanteFace.selectedBean.condpagamento}">
<f:selectItem itemValue=" " itemLabel=" " />
<f:selectItems var="itemSel" itemLabel="#{itemSel.descricao}" itemValue="#{itemSel}" value="#{participanteFace.allCondPagamento}"/>
<f:converter converterId="condPagamentoConverter"/>
<f:ajax event="change" execute="@this" render=":fmEditar:idCondPag"/>
</p:selectOneMenu>
<p:commandLink onclick="dlgcondpag.show()" title="Buscar">
<p:graphicImage value="#{pageContext.servletContext.contextPath}/resources/imagens/busca.png" width="15" height="15" alt="Buscar" />
</p:commandLink>
</td>
</tr>
</table>
<p:messages/>
</p:panel>
</h:form>
</h:body>
<p:dialog id="idBuscaCondPag" widgetVar="dlgcondpag"
header="Busca condição de pagamento" position="center"
width="700" height="400">
<h:form style="color:dodgerblue " >
<p:dataTable var="item" value="#{condPagamentoFace.list}" paginator="true" rows="10"
emptyMessage="Não há registros a exibir"
style="font-size: 10px; background-color: lightblue">
<f:facet name="header">
Lista de condições de pagamento cadastradas
</f:facet>
<p:column sortBy="#{item.codigo}" filterBy="#{item.codigo}" style=" font-size: 10px" >
<f:facet name="header">
<h:outputText value="Código"/>
</f:facet>
<h:outputText value="#{item.codigo}"/>
</p:column>
<p:column sortBy="#{item.descricao}" filterBy="#{item.descricao}" style=" font-size: 10px">
<f:facet name="header">
<h:outputText value="Descrição"/>
</f:facet>
<h:outputText value="#{item.descricao}"/>
</p:column>
<p:column style="width:30px">
<f:facet name="header">
<h:outputText value="Ação" style="font-size: 10px"/>
</f:facet>
<h:commandLink action="#{participanteFace.doConfirmaBuscaCondPag}" onclick="dlgcondpag.hide();">
<p:graphicImage value="#{pageContext.servletContext.contextPath}/resources/imagens/confirmar.png" width='15' height="15"/>
<f:setPropertyActionListener target="#{participanteFace.selectedBuscaCondPag}" value="#{item}"/>
</h:commandLink>
</p:column>
</p:dataTable>
</h:form>
</p:dialog>
</f:view>
</ui:define>
</ui:composition>
</html>
Grato,
Cristiano Assis
