데이터 테이블의 일부 데이터를 대화 상자로 전달한 다음 일부 동작을 확인하려고했습니다. 내 문제는 대화 상자에 속성을 전달하면 작동하지 않는다는 것입니다. 데이터없이 대화 상자가 나타납니다!primefaces - 대화 상자에 속성 전달
코드 :
<p:dataTable id="dt" var="cm" value="#{afficherUs.tdata}" paginator="true" rows="6">
....
<p:column style="width:32px" >
<p:commandLink update="display" oncomplete="ChefDialog.show()" >
<img src="images/edit.jpg"></img>
<f:setPropertyActionListener value="#{cm}" target="#{afficherUs.selectedc}" />
</p:commandLink>
</p:column>
</p:dataTable>
하고 대화 :
<p:dialog header="Detail Compte " widgetVar="ChefDialog" resizable="false"
width="350" showEffect="explode" hideEffect="explode">
<p:messages></p:messages>
<br></br>
<h:panelGrid id="display" columns="2" cellpadding="2">
<h:outputText value="Nom:" />
<p:inplace editor="true" >
<p:inputText value="#{afficherUs.selectedc.nom}" required="true" label="text"></p:inputText>
</p:inplace>
<h:outputText value="Prenom:" />
<p:inplace editor="true" >
<p:inputText value="#{afficherUs.selectedc.prenom}" required="true" label="text"></p:inputText>
</p:inplace>
<h:outputText value="Mot de passe:" />
<p:inplace editor="true" >
<p:inputText value="#{afficherUs.selectedc.psw}" required="true" label="text"></p:inputText>
</p:inplace>
<h:outputText value="Role :" /> <p:inplace editor="true" >
<p:inputText value="#{afficherUs.selectedc.role}" required="true" label="text"></p:inputText>
</p:inplace>
<h:outputText value=""></h:outputText> <p:panel style="border:none;"> <p:commandButton value="Valider" action="#{afficherUs.editU}" update="dt msgs" ajax="true"></p:commandButton><p:commandButton value="Annuler" oncomplete="ChefDialog.hide()"></p:commandButton></p:panel>
</h:panelGrid>
</p:dialog>
감사
콩의 범위는 무엇입니까? –