Note that there are some explanatory texts on larger screens.

plurals
  1. POMany errors on screen. Data table and autocomplete primefaces
    text
    copied!<p>My data table does not show exclusion message. I put the id of message on update metod of commandbutton inside of data table, but i receive <code>Cannot find component with identifier "messages" referenced from "j_idt31:</code></p> <p>The Autocomplete does not works. error occurs in the name of the converter. I put the name beginning whith upper and lower cases but not works. I receive <code> Jul 29, 2013 4:11:19 PM com.sun.faces.application.ApplicationImpl createConverter SEVERE: JSF1006: Não pode criar instância para o conversor de tipo pacienteConverter</code></p> <pre><code>&lt;ui:define name="conteudo"&gt; &lt;h:form&gt; &lt;p:panelGrid columns="2" id="painel" style="width: 100%; margin-top: 20px" columnClasses="rotulo, campo"&gt; &lt;p:outputLabel value="Nome do paciente" for="nPaciente" /&gt; &lt;p:autoComplete value="#{cadastroPacienteBean.pacienteSelecionado}" id="nPaciente" completeMethod="#{cadastroPacienteBean.pacientes}" var="p" itemLabel="#{p.name}" itemValue="#{p}" converter="pacienteConverter" forceSelection="true"&gt; &lt;f:facet name="itemtip"&gt; &lt;h:panelGrid columns="2" cellpadding="5"&gt; &lt;h:outputText value="Nome do Paciente: " /&gt; &lt;h:outputText value="#{p.nomePaciente}" /&gt; &lt;/h:panelGrid&gt; &lt;/f:facet&gt; &lt;/p:autoComplete&gt; &lt;/p:panelGrid&gt; &lt;p:messages id="messages" showDetail="false" showSummary="true" /&gt; &lt;p:dataTable id="dataTable" var="paciente" value="#{consultaPacienteBean.pacientes}" paginator="true" rows="10" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="5,10,15"&gt; &lt;p:column sortBy="#{paciente.nomePaciente}" headerText="nome do Paciente"&gt; &lt;h:outputText value="#{paciente.nomePaciente}" /&gt; &lt;/p:column&gt; &lt;p:column style="width: 100px; text-align: center"&gt; &lt;p:button icon="ui-icon-pencil" outcome="CadastroPaciente" title="Editar"&gt; &lt;f:param name="codigo" value="#{paciente.codigo}" /&gt; &lt;/p:button&gt; &lt;p:commandButton action="#{consultaPacienteBean.excluir}" icon="ui-icon-trash" title="Excluir" update="dataTable,messages" ajax="true"&gt; &lt;f:setPropertyActionListener target="#{consultaPacienteBean.pacienteSelecionado}" value="#{paciente}" /&gt; &lt;/p:commandButton&gt; &lt;/p:column&gt; &lt;/p:dataTable&gt; &lt;/h:form&gt; &lt;/ui:define&gt; </code></pre> <p></p> <p>My class Converter :</p> <pre><code>@FacesConverter(forClass=Paciente.class) public class PacienteConverter implements Converter { } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload