h:commandButton单击其他按钮时单击触发器

时间:2019-08-07 10:49:52

标签: jsf

我想在单击id为“ button1”的commandLink时触发button2

Button1代码:

<h:commandLink title="Edit" id="button1">
<f:setPropertyActionListener target="#{bean.model}" value="#{model}" />                 
</h:commandLink>

Button2代码:

<h:commandButton id="button2" value="Remove Selection" action="#{bean.removeSelection}" rendered="#{not empty bean.selectionItems}">
</h:commandButton>

0 个答案:

没有答案