0 Replies Latest reply on Jul 21, 2011 10:11 AM by rott

    Change Tab with JS doesn't work (RF4)

    rott

      I'm trying to change the tab of rich:tabPanel with Javascript but nothing happens when i do it this way:

       

       

      <h:form>

       

      <a4j:commandButton id="test" value="test"

                              styleClass="button"

                               immediate="true"                        

                              oncomplete="#{rich:component('layoutTabPanel')}.nextItem();" />

       

      <rich:tabPanel id="layoutTabPanel" switchType="ajax"  

                              activeItem="#{layout.selectedTab}" styleClass="tabPanel"

                              itemChangeListener="#{layout.processItemChange}"

                              onbeforeitemchange="if (#{layout.confirmLeaveDetail}) { #{rich:component('modalPanel_leave_details')}.show(); return false; } else { return true; }"

                              immediate="true"

                              >....</rich:tabPanel>

      </h:form>

       

       

      Can anybody tell me what's wrong?