eg :
on button using click event :
<af:commandMenuItem text="#{language.BUTTON_XOA}"popup define:
id="cmi4">
<af:setPropertyListener from="#{row.data}" to="#{pageFlowScope.myBean.currRow}" type="action" />
<af:showPopupBehavior popupId=":::deleteConfirmDialog" triggerType="click"/>
</af:commandMenuItem>
<af:popup id="deleteConfirmDialog">
<af:dialog id="d1" title="#{language.THONG_BAO}"
dialogListener="#{pageFlowScope.themMoiPhamViKhaiThac.deleteConfirmDialogListener}">
<af:outputText value="#{language.DELETE_CONFIRM_MESSAGE}" id="ot3"/>
</af:dialog>
</af:popup>
popup listener:
public void deleteConfirmDialogListener(DialogEvent dialogEvent) {
if(!DialogEvent.Outcome.ok.equals(dialogEvent.getOutcome())) return;
if(currRow != null){
//
}
}