Problema com binding do f:actionListener[JSF 2.0 + Primefaces 3.0 final]

0 respostas
F

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.

Criado 3 de janeiro de 2012
Respostas 0
Participantes 1