6 Replies Latest reply on Oct 10, 2008 5:07 AM by kamalath

    rich:scrollableDataTable rendering issue

      hello, i am trying to use the scrollableDataTable with a header that is on 2 rows and a column which spans 3 columns: here is the code:

      <rich:scrollableDataTable id="versementsTable"
      width="1200px"
      var="versement"
      rows="40"
      eventsQueue="jxeeQueue"
      value="#{versementsAdaptor.versementsGridData}">
      <f:facet name="header">
      <rich:columnGroup>
      <rich:column rowspan="2">
      <h:outputText value="#{msg.opCode}" id="opCodeLabel"/>
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.typeEnreg}" id="typeEnregLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.noSeqPhysique}" id="noSeqPhysiqueLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.dateExecution}" id="dateExecutionLabel" />
      </rich:column>

      <rich:column colspan="3">
      <h:outputText value="#{msg.compteDuBeneficiaire}" id="compteDuBeneficiaireLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.Registration_number}" id="Registration_numberLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.Name}" id="NameLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.Bank}" id="BankLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.operationReason}" id="operationReasonLabel" />
      </rich:column>

      <rich:column rowspan="2">
      <h:outputText value="#{msg.Amount}" id="AmountLabel" />
      </rich:column>



      <rich:column breakBefore="true">
      <h:outputText value="#{msg.codeBanque}" id="codeBanqueLabel" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{msg.codeGuichet}" id="codeGuichetLabel" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{msg.cpte}" id="cpteLabel" />
      </rich:column>
      </rich:columnGroup>
      </f:facet>
      <rich:column >
      <h:outputText value="#{versement.opCode}" />
      </rich:column>

      <rich:column >
      <h:outputText value="#{versement.typeEnreg}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.noSeqPhysique}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.dateExecution}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.codeBanque}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.codeGuichet}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.cpte}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.registratioNumber}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.name}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.bank}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.operationReason}" />
      </rich:column>

      <rich:column>
      <h:outputText value="#{versement.amount}" />
      </rich:column>

      </rich:scrollableDataTable >

      the problem is that it is not rendered properly...
      using the dataTable instead of scrollableDataTable renders the page just fine, but we loose the request on scroll function. (and we love the request on scroll function:) ) so using the dataTable + dataScroller is not an option for us. Please tell me if the scrollableDataTable supports this type of layout... I tryied installing richfaces 3.2.2 for extendedDataTable but it crashes all our pages that have scrollableDataTable in it...so that isn't an option either.
      Sory about my huge post, thank you reading it and replying to it :) -i hope

        • 1. Re: rich:scrollableDataTable rendering issue
          pkawiak

          Could you please be more specific about extDt crashing pages with scrollableDataTables (are there any JS/Java errors, your environment etc.)? It would help us to find a problem and fix it.

          • 2. Re: rich:scrollableDataTable rendering issue

            i never said that extendedScrollableDataTable crashes my pages... i said that the richfaces 3.2.2 release crashes my pages...mostly css rules get messed up... therefore i wasn't able to test the extendedScrollableDataTable properly

            • 3. Re: rich:scrollableDataTable rendering issue
              ilya_shaikovsky

              I think you misses something. We have our demo up and running without any problems and you are alone who reports about "complete crashe". So with a cush description it isn't possible to find out anything.

              You could:

              1) check carefully your caches after update to 3.2.2
              2) clean redeploy and check again your application
              3) send us war file with a concrete sample.

              • 4. Re: rich:scrollableDataTable rendering issue

                i guess we are going offtopic... all i want to know if rich:scrollableDataTable supports that kind of header layout or not...

                • 5. Re: rich:scrollableDataTable rendering issue

                  I did not want to post a new thread since this is a new scrollableDataTable matter...is there any way to say to the datatable to display a row's background color based on the informations on that row? (eg: i want all types af apples to have background-color:red, all types of potatoes to be yellow.. an so forth..).
                  An attribute smthn like rowColor=#{bean.rowColor(rowKeyVar)} ? it's because i don't want to determine the background color on per cell basis using divs as containers, but on per row basis...

                  • 6. Re: rich:scrollableDataTable rendering issue
                    kamalath

                    Hi,

                    Even I am trying to add column group inside scrollabledatatable. It doesnot render it properly. The same works fine with datatable. But with scrollabledatatable It just renders all the columns in a single row. Please tell me if the scrollableDataTable supports this type of layout.