Reputation: 15
The following treeTable is needed to be edited so as to enable data insertion from the JSF to Backing Bean classes.
<p:treeTable id="labBillTree" value="#{labBillMB.root}" var="document" scrollable="true">
<p:column headerText="Item Code" width="140" sortBy="#{document.code}"
filterBy="#{document.code}" filterMatchMode="contains">
<h:outputText value="#{document.code}" />
</p:column>
</p:treeTable>
The above code will anyhow display the list of ItemCode in normal hierarchical tree format. How can we come across this problem?
Upvotes: 0
Views: 2221
Reputation: 365
If you want to edit the code, simply replace
<h:outputText value="#{document.code}" />
by
<p:inputText value="#{document.code}" />
Upvotes: 2