2 Replies Latest reply on Oct 28, 2009 8:39 AM by Miguel Cohnen

    rich:tabPanel with switchType=ajax and selectedTab... not wo

    Miguel Cohnen Newbie

      Hi,
      I wonder what I'm doing wrong here. I just want a tabPanel to have ajax switchType, but I'd like to be able to select at first point a tab. So this is my test code:

      <h:form>
       <rich:tabPanel switchType="ajax" selectedTab="#{placeHome.selectedTab}">
       <rich:tab id="popo" label="popo">popo</rich:tab>
       <rich:tab id="pepe" label="pepe">pepe</rich:tab>
       </rich:tabPanel>
      </h:form>
      


      placeHome.selectedTab is a RequestParameter for a Seam component. What happens here is if I click the unselectedTab, it does the ajax call, but the previously selected tab is still there. There was no tab change. Of course, if I remove the selectedTab aatribute everything works as expected.

      What am I missing here?

      thank you a lot