2 Replies Latest reply on Oct 8, 2009 12:47 AM by jeanchastain.wjchastain.gmail.com

    ui:repeat not rendering last list element in pdf view

    ben_utzer

      Hi,


      I have a problem rendering all of my list elements in a seam generated pdf document. The last one is always omitted when using ui:repeat inside a table. This is not the case when rendered outside a table.


      Is this a known bug or am I doing something wrong? What would be the best workaround?



      Thanks alot,


      Ben


      Code:




      <p:table columns="4" headerRows="1" horizontalAlignment="left" widthPercentage="100" widths="1 7 2 2">
        <f:facet name="defaultCell">
          <p:cell horizontalAlignment="center" verticalAlignment="middle" noWrap="true" />
        </f:facet>
        <ui:repeat value="#{kundenAuftrag.zusatzArtikelPositionen}" var="_zusatzArtikelPosition">
          <s:fragment rendered="#{(not empty _zusatzArtikelPosition.menge) and (_zusatzArtikelPosition.menge != 0)}">
           <p:cell>
           <p:paragraph><p:text value="#{_zusatzArtikelPosition.menge}"/></p:paragraph>
           </p:cell>
           <p:cell>
           <p:paragraph><p:text value="#{_zusatzArtikelPosition.zusatzArtikel.bezeichnung}"/></p:paragraph>
           </p:cell>
           <p:cell>
           <p:paragraph><p:text value="#{_zusatzArtikelPosition.einzelBruttoPreis}"><f:convertNumber type="currency" currencySymbol="&#8364;" minFractionDigits="2" maxFractionDigits="2"/></p:text</p:paragraph>
           <p:cell>
           <p:cell>
           <p:paragraph><p:text value="#{_zusatzArtikelPosition.gesamtBruttoPreis}"><f:convertNumber type="currency" currencySymbol="&#8364;" minFractionDigits="2" maxFractionDigits="2"/></p:text</p:paragraph>
           </p:cell>
         </s:fragment>
      </ui:repeat>
                     
                                    
                </p:table>