コンポーネントp:dialog
の値が事前に入力された を表示できません。p:inputText
<p:dialog modal="true" widgetVar="editPersonDlg" header="Edit Person" width="350">
<h:form id="editPersonForm">
<h:panelGrid columns="2">
<h:outputLabel for="editFirstName" value="First Name:" />
<p:inputText id="editFirstName" value="#{personBean.selectedPerson.firstName}" />
<p:commandButton value="Save" type="Button" actionListener="#{personBean.edit}"
oncomplete="editPersonDlg.hide()"/>
<p:commandButton value="Cancel" type="Button" oncomplete="editPersonDlg.hide()"/>
</h:panelGrid>
</h:form>
</p:dialog>
personBean#selectedPerson
デバッグすると、null 以外の名前を持つ null 以外の Person が効果的に返されていることがわかります。Person#getFirstName
null 以外の名前を効果的に返しています。ただし、Dialog の inputText ボックスには FirstName と LastName は表示されません。