7 Replies Latest reply on May 16, 2007 7:24 AM by ilya_shaikovsky

    Tab Label not Displayed when using Expression

    aoifejk

      I'm working on a simple proof of concepts while evaluating RichFaces and I'm having trouble getting a tab label to be displayed when I set value as anything other than hard coded string.

      I'm tried this with JSF 1.2_4, JSP 2.1, JSTL 1.2, JDK 1.5 and snapshots for RichFaces and ajax4jsf from 8th May. At simplest level I know that I will need a tabPanel just not how many tab components within it. My backing bean returns a Map of objects containing the information that I require. My JSP looks like:

      <rich:tabPanel width="100%" id="tpanel" styleClass="top_tab"
       contentClass="TabPanel" >
       <c:forEach var="tabdetails" items="#{tabbbean.tabDetailsMap}">
       <rich:tab label="#{tabdetails.value.tabCaption}" labelWidth="100" >
       <f:subview id="tpanel_subview">
       <jsp:include page="#{tabdetails.value.tabUrl}" />
       </f:subview>
       </rich:tab>
       </c:forEach>
      </rich:tabPanel>


      The above snippet will render fine but the tab has no label associated with it. If I just did something like
      <rich:tab label="simpletabname" ... />

      then it works fine but obviously this is not what I need.

      Any thoughts?
      Thanks,
      Aoife