8 Replies Latest reply on Nov 2, 2011 4:10 AM by healeyb

    a4j:commandLink not working in dynamically generated rich:tabPanel

    scott.jones618

      I am using Facelets, JSF 2.0, & RichFaces 4.0.0.

       

      I am able to use a4j:commandLink with rich:tabPanel with a static rich:tab without a problem:

       

      <h:form id="form">
        <rich:tabPanel switchType="client">
          <rich:tab name="tab" label="tab" title="tab">
            <a4j:commandLink action="#{someBean.someAction}" rendered="true" value="Works fine!"/>
        ...
      

       

      However, when I try to create tabs dynamically (a requirement of my project) and have links on the tabs, the links stop working.  They appear and look like hyperlinks but nothing happens when I click on them.

       

      <h:form id="form">
        <rich:tabPanel switchType="client">
          <c:forEach items="#{someBean.items}" var="eachItem">
            <rich:tab name="#{eachItem.name}" label="#{eachItem.name}" title="#{eachItem.description}">
              <a4j:commandLink action="#{someBean.someAction}" value="Doesn't work!"/>
      ...
      

       

      Any ideas?