4 Replies Latest reply on Sep 18, 2008 4:52 PM by shadowcreeper

    rich:columns within rich:tab bug?

    Mark LoSacco Newbie

      I have a rich:tabPanel with several rich:tabs, and am using ajax switchType.
      My understanding is that only the active tab should be loading.

      I have found, however, that when I have rich:dataTable that uses rich:columns the backing bean is called to evaluate the values attribute prior to the containing tab ever being selected.

      Here is a very simplified example of my setup:

      <rich:tabPanel selectedTab="#{selectedTabAction.selectedTab}" switchType="ajax">
       <rich:tab label="Tab 1" name="tab1">
       Tab 1 Content Here
       <rich:tab label="Tab 2" name="tab2">
       <rich:dataTable value="#{bean.values}" var="_value">
       <rich:columns rendered="#{bean.show}" value="#{bean.cols}" var="_col"/>

      What I have noticed is that when the page is loaded #{bean.cols} is being called despite the fact that tab 2 is not the active tab. The rendered call #{bean.show} is not called.

      I am not seeing this behavior elsewhere with rich faces components in a tab control - it seems specific to rich:columns.

      Is this a bug or are my assumptions incorrect?