I already asked this question on the WildFly forum, but have not received an answer yet. Therefore, I am trying here.
Since I upgraded from WildFly 8.1 to 8.2, I have problems with commandButton inside the tabView connected to the bean.
Here is a simple JSF page:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head></h:head> <h:body> <h:form> <p:tabView binding="#{testBean.tabView}"> <p:tab title="Tab"> <p:commandButton value="Inside" action="#{testBean.testInside}"/> </p:tab> </p:tabView> <p:commandButton value="Outside" action="#{testBean.testOutside}"/> </h:form> </h:body> </html>
and bean:
@Named @SessionScoped public class TestBean implements Serializable { private TabView tabView = new TabView(); public TabView getTabView() { return tabView; } public void setTabView(TabView tabView) { this.tabView = tabView; } public void testInside() { System.out.println("inside"); } public void testOutside() { System.out.println("outside"); } }
Pressing the Inside button calls testInside() two times. The External button (outside the tabView) behaves normally and runs the method only once. Removing the tabView binding fixes the problem. I am using PrimeFaces 4.0.
Thanks for any ideas.
Jan
source share