ICEfaces
  1. ICEfaces
  2. ICE-6370

ice:datatable not working inside ui:repeat

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Windows XP, Glassfish 2.1.1

      Description

      In latest Icefaces2 beta, when trying to render a list of datatables, only the last one is displayed.

      This seems like a bug.

      Using c:forEach works "fine", except it is not the right thing to use and a modification of the c:forEach source collection will not be reflected after first page view.

      Anyone knowing how to solve that, or is there a workaround?

      Yannick

      Code:

                               <ui:repeat value="#{GestionDecharges.coursSelTravCollection}" var="ligneActivite" >
       
                                           <ice:dataTable value="#{ligneActivite.ligneAttributionsAnneeN}"
                                                        var="attributionAnneeN">
                                               <ice:column >
                                                   <f:facet name="header">
                                                       <h:outputLabel value="Nom" style="width: 150px" />
                                                   </f:facet>
                                                   <h:commandButton value="#{attributionAnneeN.nomEnseignant}" action="#{GestionDecharges.afficherVueProf(attribution.intervenant,GestionDecharges.anacAttributionDisplay)}" styleClass="lien" />
                                               </ice:column>
                                               <ice:column >
                                                   <f:facet name="header" >
                                                       <h:outputLabel value="Prénom" style="width: 150px"/>
                                                   </f:facet>
                                                   <h:outputText value="#{attributionAnneeN.prenomEnseignant}" style="width: 150px"/>
                                               </ice:column>
                                           </ice:dataTable>
       
                               </ui:repeat>

        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          We have not had a chance yet to create the mojarra bug report. Please do so if it's convenient and include the link here.

          Show
          Ted Goddard added a comment - We have not had a chance yet to create the mojarra bug report. Please do so if it's convenient and include the link here.
          Hide
          Yannick Majoros added a comment -

          I could find those existing bug reports:

          http://java.net/jira/browse/JAVASERVERFACES-1830
          http://java.net/jira/browse/JAVASERVERFACES-1834

          I think the first one is just what you are explaining. Could you confirm this? The second one gives us a hint of a workaround.

          Interesting discussion: http://stackoverflow.com/questions/3882147/how-to-refer-to-datatable-parent-within-the-datatable

          Regards,

          Yannick Majoros

          Show
          Yannick Majoros added a comment - I could find those existing bug reports: http://java.net/jira/browse/JAVASERVERFACES-1830 http://java.net/jira/browse/JAVASERVERFACES-1834 I think the first one is just what you are explaining. Could you confirm this? The second one gives us a hint of a workaround. Interesting discussion: http://stackoverflow.com/questions/3882147/how-to-refer-to-datatable-parent-within-the-datatable Regards, Yannick Majoros
          Hide
          Ken Fyten added a comment -

          This will need Mojarra JSF 2.1 as it's a JSF bug.

          Show
          Ken Fyten added a comment - This will need Mojarra JSF 2.1 as it's a JSF bug.
          Hide
          Ted Goddard added a comment -

          From the java.net bugs, it looks like the mojarra team is aware of the problem. ICEfaces could provide a fix, however, as a new component that functions like h:dataTable but does not introduce the <table> markup. Please contact product.support@icesoft.com if you wish to request a new component for this.

          Show
          Ted Goddard added a comment - From the java.net bugs, it looks like the mojarra team is aware of the problem. ICEfaces could provide a fix, however, as a new component that functions like h:dataTable but does not introduce the <table> markup. Please contact product.support@icesoft.com if you wish to request a new component for this.
          Hide
          Ted Goddard added a comment -

          This is not an ICEfaces bug, but could be resolved with a new ICEfaces component with the desired behavior.

          Show
          Ted Goddard added a comment - This is not an ICEfaces bug, but could be resolved with a new ICEfaces component with the desired behavior.

            People

            • Assignee:
              Ted Goddard
              Reporter:
              Yannick Majoros
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: