1 Reply Latest reply on Dec 19, 2007 4:01 AM by nbelaevski

    Richfaces tabPanel not working

    ismail_mca

      Hi All

      I have tried sample app tabPanelDemo (richfaces-ui-3.1.2.SP1-src\samples\tabPanelDemo) .

      In that demo app i have tried to run rendering.jsp page by adding "seletedTab" attribute in the "tabPanel" tag.But i got the logValueDeprecation error.

      If I use 'selectedTab' and 'value' attribute both together in the tabPanel tag,gives me logValueDeprecation error.

      In my application we are using 'selectedTab' and 'value' attribute both together for the tabPanel tag.This works for Richfaces3.0 API.

      Here is the sample code(rendering.jsp)

      <%@ taglib uri="http://richfaces.org/rich" prefix="tabs" %>
      <rich:tabPanel
      width="100%" switchType="client"
      selectedTab="#{bean.currentTab}"
      value="#{bean.currentTab}" id="tab_panel">
      
      <rich:tab disabled="#{bean.disabledTabName == 'canon'}" name="canon" label="Canon" switchType="server">
      
      ------- <remaining Code follows>
      --------


      Thanks in advance.

      Isma

        • 1. Re: Richfaces tabPanel not working
          nbelaevski

          Isma,

          We've deprecated "value" attribute in favor to "selectedTab". If you specify them both, then tabPanel will use "selectedTab" one and issue warning to application log. That can be safely ignored for now, however using "selectedTab" for new application is preferable.