0

是否可以在 commandButton 中有条件地使用 f:setPropertyActionListener?

<p:commandButton value="button" process="@this" update=":someForm" action="#{someMB.someAction}">
    <f:setPropertyActionListener target="#{someMB.someAttr}" value="#{someValue}" disabled="#{someCondition}"/> 
</p:commandButton>

就像 f:setPropertyActionListener 中的禁用属性一样。

我通常做的是制作 2 个具有渲染属性的不同按钮。

4

0 回答 0