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>
public class MyBean { public String sayHello(){ System.out.println("hello"); return null; } }
Hi Alex,
I had the same problem. However, action gets executed during the second postback. Using activeItem attribute solves the problem.
{code}
<rich:tabPanel immediate="true" activeItem="_0" ...>
<rich:tab id="_0"...>
...
{code}