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