Using the example of DataTable - Row Selection. I added a Inplace component to the Dialog. I want the inplace input text to store the value from the backing bean. After adding the code, the entire Dialog field is empty. What has happened? Anyway to keep the value in the inplace input text? Thks
Code: Select all
<p:dialog header="Car Detail" widgetVar="carDialog" resizable="false"
width="500" showEffect="explode" hideEffect="explode">
<h:panelGrid id="display" columns="2" cellpadding="4">
<h:outputText value="Model:" />
<h:outputText value="#{carDataTableBean.selectedCar.model}" />
<h:outputText value="Color:" />
<h:outputText value="#{carDataTableBean.selectedCar.color}"/>
<p:inplace>
<h:inputText required="true" id="color" value ="#{carDataTableBean.selectedCar.color}">
<f:validateLength minimum="3" maximum="50" />
</h:inputText>
</p:inplace>
</h:panelGrid>
</p:dialog>