我想给用户编辑实体列表,就像我们在普通 xhtml 中所做的那样:
<p:dataTable id="salesTbl" var="line" value="#{indexBean.linesList}" editable="true" editMode="cell">
在移动 UI 中执行此操作的建议是什么,因为上面的示例不起作用...
我想给用户编辑实体列表,就像我们在普通 xhtml 中所做的那样:
<p:dataTable id="salesTbl" var="line" value="#{indexBean.linesList}" editable="true" editMode="cell">
在移动 UI 中执行此操作的建议是什么,因为上面的示例不起作用...
我通过在一行中添加一个按钮并按下只是弹出对话框来更改此实体来做到这一点。例子:
<p:column headerText="Quantity">
<p:commandButton oncomplete="PF('lineDialog').show()" value="#{line.quantity}" update=":panelForm:lineDetail">
<f:setPropertyActionListener value="#{line}" target="#{indexBean.editedLine}"/>
</p:commandButton>
</p:column>