需要对以下treeTable进行编辑,以便能够将数据从JSF插入到Backing Bean类。
<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>
无论如何,以上代码将以普通的分层树格式显示ItemCode的列表。我们怎么会遇到这个问题?
如果要编辑代码,只需替换
<h:outputText value="#{document.code}" />
经过
<p:inputText value="#{document.code}" />
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句