1 Reply Latest reply on Sep 7, 2011 4:41 PM by Vytenis Bivainis

    tabPanel: setting immediate=true breaks commandButton inside

    Alexander De Leon Newbie

      Hi All,

      I am setting the immediate attribute of tabPanel to true because I want to be able to change tabs without invoking the validation phase. I notice that when I do that the commandButtons that I have inside the tabs stop working. For example:

      Given the following tabPanel

      <rich:tabPanel switchType="ajax" immediate="true">
       <rich:tab name="tab1" label="Tab 1">
       <h:commandButton action="#{myBean.sayHello}" value="Submit" />
       </rich:tab>
      </rich:tabPanel>
      

      And the Bean :
      public class MyBean {
       public String sayHello(){
       System.out.println("hello");
       return null;
       }
      }
      


      The sayHello method is not called unless I remove the immediate attribute of the tabPanel.

      I may be misinterpreting the semantics of the immediate attribute, so I am not sure if this is the expected behavior or if it is a little bug :)

      Thanks
      Alex