Bom dia,
Estou usando um f:actionListener dentro de um p:commandLink, ele nem está chamando o método.
Meu xhtml<p:commandLink id="plusButton" onclick="#{treeModBean.addItemMenuId}.show();"
update="addCategoryDialogId addCategoryDialog addEditProductVersionDialogId"
rendered="#{sec:hasRole('downloads_save') || sec:hasRole('downloads_cat_save')}">
<h:graphicImage value="/images/webpage/plus_icon.png" alt="Button" width="22" heigth="22" style="border:0;" />
<f:actionListener for="plusButton" binding="#{productBean.editModeActionListener}" />
</p:commandLink>
Meu MB@Component
@Scope(value = "page")
public class ProductBean {
private ActionListener editModeActionListener;
...
public ActionListener getEditModeActionListener() {
if (editModeActionListener == null) {
editModeActionListener = new ActionListener() {
@Override
public void processAction(ActionEvent event) throws AbortProcessingException {
if (editMode == false) {
setEditMode(true);
}
}
};
}
return editModeActionListener;
}...
Obrigado.