8 Replies Latest reply on Jan 14, 2010 8:04 AM by Steven De Groote

    a4j repeat table problem

    roel croonenberghs Newbie

      Hi,
      i'm heaving troubles with a4j repeat. When requesting the same page a couple times my result lay-out goes wrong.

      correct lay-out: [img]http://img405.imageshack.us/i/200912021619.png/[/img]
      wrong lay-out: [img]http://img294.imageshack.us/i/200912021617.png/[/img]

      html source difference (left = wrong)[img]http://img510.imageshack.us/i/200912021615.png/[/img]

      You can find a war to deploy with source code at http://www.filedropper.com/dlagtest

      deploy it in tomcat, click 'anmelden', click 'stammdaten' and click 'report'. You get the correct lay-out. When you click a couple times on 'report', you get the wrong lay-out.

      i don't knwo what is wrong.

      Hope somebody knows a solution.

      Tnx

      Roel

        • 1. Re: a4j repeat table problem
          Nick Belaevski Master

          Hi Roel,

          Please post related pages code.

          • 2. Re: a4j repeat table problem
            roel croonenberghs Newbie

            This is the jsp/jsf code

            ...

            <a4j:outputPanel id="presults">
             <a4j:repeat id="resultview" binding="#{masterDataDetail.cmpResults}" rows="25" value="#{masterDataDetail.items}" var="result">
             <table width="90%" style="border: 1px solid #000;">
             <tr>
             <td style="font-weight:bold">
             <h:outputText value="#{msg.masterDataDetail_nummer}" /> 
             <h:outputLink value="transactiondatadetail.jsf">
             <h:outputText value="#{result.contractnumber}"/>
             <f:param name="contractnr" value="#{result.contractnumber}" />
             <f:param name="ref" value="masterdatadetail" />
             </h:outputLink>
             </td>
             <td style="font-weight:bold">
             <h:outputText value="#{msg.masterDataDetail_contractstatus}" />  <h:outputText value="#{result.contractstatus}"></h:outputText>
             </td>
             <td style="font-weight:bold">
             <h:outputText value="#{msg.masterDataDetail_servicecontractnumber}" />  <h:outputText value="#{result.servicecontractnumber}"></h:outputText>
             </td>
             <td style="font-weight:bold">
             <h:outputText value="#{msg.masterDataDetail_licenseplate}" />  <h:outputText value="#{result.licenseplate}"></h:outputText>
             </td>
             </tr>
             </table>
            
             <table>
             <tr>
             <td>
              
             </td>
             </tr>
             </table>
            

            ...
            <table width="90%" style="border:1px solid #000;margin-top:1em">
             <tr>
             <td>
             <h:outputText value="#{msg.masterDataDetail_excessdistancerm}"/>
             </td>
             <td>
             <h:outputText value="#{result.excessdistancerm}">
             <f:convertNumber maxFractionDigits="3" />
             </h:outputText>
             </td>
             <td>
             <h:outputText value="#{msg.masterDataDetail_lessdistancerm}"/>
             </td>
             <td>
             <h:outputText value="#{result.lessdistancerm}">
             <f:convertNumber maxFractionDigits="3" />
             </h:outputText>
             </td>
             </tr>
             </table>
             <div style="width:90%;background-color:#000;margin:1em 0"> </div>
             </a4j:repeat>
             </a4j:outputPanel>
             <rich:spacer height="10" />
             <rich:datascroller align="center" reRender="presults" for="resultview" renderIfSinglePage="false" binding="#{masterDataDetail.cmpDataScroller}" scrollerListener="#{masterDataDetail.switchPage}" maxPages="20" />
             </h:form>
            
            


            • 3. Re: a4j repeat table problem
              Ilya Shaikovsky Master

              from the beggining add layout="block" to your outputPanel and tbody elements to your tables.

              • 4. Re: a4j repeat table problem
                roel croonenberghs Newbie

                I added what you suggested (layout="block" an to all my tables), but it does not change.
                I still get the same lay-out error.

                • 5. Re: a4j repeat table problem
                  roel croonenberghs Newbie

                  I added what you suggested (layout="block" and < tbody>) to all my tables, but it does not change.
                  I still get the same lay-out error.

                  • 6. Re: a4j repeat table problem
                    Ilya Shaikovsky Master

                    Which Filter used? If there are any problems in a4j:log?

                    (I can't find the war under URL provided)

                    • 7. Re: a4j repeat table problem
                      roel croonenberghs Newbie

                      You can find the war at http://www.filedropper.com/dlagtest (seems filedropper deleted it, i uploaded it again)
                      The report button is not ajax, but refreshes the page.

                      • 8. Re: a4j repeat table problem
                        Steven De Groote Newbie

                        Have you guys managed to reproduce this problem with the war?


                        Can you just let us know if there's something more we need to provide, because we're still stuck with this problem.

                         

                         

                        Thanks,

                        Steven