Inplace error in Dialog

UI Components for JSF
Post Reply
garyyip
Posts: 67
Joined: 25 Aug 2010, 18:55

03 Sep 2010, 22:43

Hi

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>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 29 guests