2 Replies Latest reply on Mar 31, 2009 12:10 PM by lmk

    [tabPanel]selectedTab inside a request bean kept alive

    lmk

      Hi all,

      I tried to use selectedTab attribute for tabPanel,

      when the bean that contains selectedTab is in request scope and used with <a4j:keepAlive/>, the ajax requests inside tabs are never sent.
      if I change the bean in session scope, it works normaly.

      best regads!




        • 1. Re: [tabPanel]selectedTab inside a request bean kept alive
          ilya_shaikovsky

          show the code.

          • 2. Re: [tabPanel]selectedTab inside a request bean kept alive
            lmk

            here a snippet code

            <a4j:keepAlive beanName="admin" />
            <rich:tabPanel id="admin_tab" switchType="ajax" style="width:99%;"
            selectedTab="#{admin.selectedTab}">
            <rich:tab label="Company" name="#{admin.companyTab}"
            rendered="#{manager.isSuperAdmin}">
            <rich:comboBox selectFirstOnUpdate="false"
            defaultLabel="Enter some value"
            value="#{form.updatedName}" id="combo_company" width="200"
            immediate="true">
            <t:selectItems value="#{form.companies}" var="list"
            itemLabel="#{list.name}" itemValue="#{list.name}" />
            <a4j:support event="onselect" reRender="company"
            action="#{form.onSelectUpdate}" ajaxSingle="false">
            </a4j:support>
            </rich:comboBox>
            
            </rich:tab>