我想在单击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>