3 Replies Latest reply on Apr 6, 2007 1:12 PM by Sergey Smirnov

    constructor is called even rendered=false in tabpanel?

    liumin hu Master


      i have a rich:tabpanel with 5 tabs, switchType="ajax" . when the page loads, every constructor of backingbean in these 5 tabs is called, even the rendered attribute of the tab is false. is it normal in richface or in facelet?

       <rich:tabPanel switchType="ajax" selectedTab="synthese" height="100%">
       <rich:tab id="synthese" label="Synthèse" >
       <a4j:include viewId="./prescriptionS.xhtml" />
       <rich:tab id="ordonnance" label="Ordonnance" rendered="false">
       <a4j:include viewId="./prescriptionH.xhtml" />
       <rich:tab id="pancarte" label="Pancarte" >
       <rich:tab id="agenda" label="Agenda" switchType="ajax" rendered="false">
       <a4j:include viewId="./scheduleP.xhtml" />
       <rich:tab id="favoris" label="Favoris" >
       <a4j:include viewId="./Protocole.xhtml" />
       <rich:tab id="protocol" label="Protocol" >
       <a4j:include viewId="./ProtocoleSynthese.xhtml" />

      i use richfaces snapshot 3.0.1, facelet 1.1.12.myfaces 1.1.5