Answers for "primefaces command redirect on bean action"

0

primefaces command redirect on bean action

<p:commandButton id="savebutton" ajax="false" value="#{msg['addCategory.save']}" action="#{addCategoryController.doSave()}" />
Posted by: Guest on September-14-2021
0

primefaces command redirect on bean action

<p:commandButton id="savebutton" ajax="true" value="#{msg['addCategory.save']}" actionListener="#{addCategoryController.doSave()}" />
Posted by: Guest on September-14-2021
0

primefaces command redirect on bean action

public void doSave(){       
    categoryAddEvent.fire(categoryProducer.getSelectedCategory());
    FacesContext.getCurrentInstance().getExternalContext().redirect(Pages.LIST_CATEGORIES);
}
Posted by: Guest on September-14-2021

Code answers related to "primefaces command redirect on bean action"

Browse Popular Code Answers by Language