Set variable value in InputText JSF

0

People, I'm having a doubt maybe even a little beast but I can not solve it, I'm starting in web development using java and jsf, primefaces and I'm having a problem when changing a registry. I have a listing page that contains the detail button from there I open a

<p:dialog header="Detalhamento de Turmas" widgetVar="turmaDialog" modal="true" showEffect="explode" hideEffect="explode" resizable="false">

And the inside ready my data:

 <p:outputPanel id="turmaDetail" style="text-align:center;">
        <p:panelGrid  columns="2" columnClasses="label,value"> 

            <h:outputText value="Código da Turma" />
            <h:outputText value="#{controllerTurma.turmaAlterar.id}" />
            <h:outputText value="Nome / Descrição" />
            <h:outputText value="#{controllerTurma.turmaAlterar.descricao}" />
            <h:outputText value="Tipo Ensino" />
            <h:outputText value="#{controllerTurma.turmaAlterar.tipoEnsino}" />
            <h:outputText value="Turno das Aulas" />
            <h:outputText value="#{controllerTurma.turmaAlterar.turno}"/>                                              
            <center>
            <p:commandButton ajax="false" value="Alterar"/>
            </center>

        </p:panelGrid>
    </p:outputPanel>

My problem is, when trying to do the same, but passing the values to a

   <h:inputText value="#{controllerTurma.turmaAlterar.descricao}"  />

The input is blank, as if the value of the variable were null, but the same value is listed above. What should I do to load my data into an inputText

    
asked by anonymous 22.09.2016 / 20:20

0 answers