primefaces - 命令按钮在子节点中不起作用
问题描述
大家好 :) 我使用 primefaces 创建了一个树表。在其中一个表格列中,我包含了 3 个按钮。问题是按钮仅适用于第一级而不适用于第二级。有人能帮助我吗。这是我的树表代码:
<h:form>
<p:treeTable value="#{processBean.treeNode}" var="node" ajax="true"
selectionMode="single" rowKey="#{node.id}">
<p:ajax event="select" listener="#{processBean.onSelect(node)}" />
<f:facet name="header">Processes View</f:facet>
<p:column headerText="Id">
<p:outputLabel value="#{node.id}" />
</p:column>
<p:column headerText="Name">
<p:outputLabel value="#{node.name}" />
</p:column>
<p:column headerText="Description">
<p:outputLabel value="#{node.description}" />
</p:column>
<p:column headerText="Created date">
<p:outputLabel value="#{node.createdDate}" />
</p:column>
<p:column headerText="Status">
<p:outputLabel value="#{node.status}" />
</p:column>
<p:column headerText="Actions" styleClass="centered-text">
<p:commandButton title="Start" ajax="true"
icon="fa fa-play Fs16 white"
action="#{processBean.startProcess(node)}">
</p:commandButton>
<p:spacer width="4%" />
<p:commandButton title="Skip" ajax="true"
icon="fa fa-step-forward Fs16 White"
actionListener="#{processBean.skipProcess(node)}">
</p:commandButton>
<p:spacer width="4%" />
<p:commandButton title="Complete" ajax="true"
icon="fa fa-stop Fs16 white"
actionListener="#{processBean.completeProcess(node)}">
</p:commandButton>
</p:column>
</p:treeTable>
</h:form>
解决方案
推荐阅读
- python - 从字典列表制作嵌套字典
- php - Display a php variable's color inside , depending on the value
- html - HTML 白色背景未正确显示
- ios - iOS 和 MacO 之间 HTML 电子邮件的不同 Mail Composer View 行为
- r - R Shiny:从 selectizeInput 动态创建 bucket_list 的操作按钮
- python - R 的插入符号 knnImpute 和 Python 的 sklearn.impute KNNImputer 结果之间的对应关系
- matlab - 在 MacOS 上使用 cvx_setup 在 MATLAB 2021a 中安装 CVX 时出现问题,缺少 cvx/sedumi/.travis.yml
- kubernetes - 如何从集群内部访问k8s Ingress
- python - 问题 Django:当我进行 HTML 更改时需要重建
- android - Recycler 中的项目数量取决于屏幕大小