1 Reply Latest reply on Feb 2, 2015 8:26 AM by struwi

    JSF button action triggered twice after upgrade to WildFly 8.2

    struwi

      Hi,

       

      since I upgraded from WIldFly 8.1 to 8.2 I have problems with a commandButton inside a tabView connected to a 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 the 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");

          }

      }

       

      Clicking the "Inside" button triggers testInside() two times. The "Outside" button behaves normally. Removing the tabView binding eliminates the problem.

       

      Any ideas?

      Jan