storing variable in inputText?

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

04 Sep 2010, 21:51

Hi

Anybody know how to store a variable from the backing bean to the inputText?

Below is my code and i receive error from the glassfish

Code: Select all

<p:dialog header="Product Detail" widgetVar="productDialog" resizable="false"
              width="500" showEffect="explode" hideEffect="explode">

        <h:panelGrid id="display" columns="2" cellpadding="4">

          
 <h:outputText value="Model Number:" />
 <h:outputText value="#{productDataTableBean.selectedProduct.modelNumber}" />
          
  <h:outputText value="Description:" />
 <h:inputText value="#{productDataTableBean.selectedProduct.description}"/>
     
     
        </h:panelGrid>
    </p:dialog>

Error
javax.el.PropertyNotFoundException: /index.xhtml @75,76 value="#{productDataTableBean.selectedProduct.description}": Target Unreachable, 'null' returned null

Anyone have this problem before? Will greatly appreaciate if you can help me
Many many thank

Gary

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests