Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12193

rich:extendedDataTable is blank on show

    XMLWordPrintable

    Details

    • Sprint:
      RF 4.3.2 Sprint 2
    • Steps to Reproduce:
      Hide

      1) Render table inside container with "display:none";
      2) Show it with JavaScript

      <a href="#" onclick="jQuery('#tableWrapper').show();return false;">show</a>
      <h:form id="mform">
      <div id="tableWrapper" style="display:none;">
          <rich:extendedDataTable
              id="table"
              value="#{testBean.items}" var="item"
              style="height:300px;width:400px;">
              <rich:column>
                     <f:facet name="header">
                         <h:outputText value="Column 1" />
                     </f:facet>
                  <h:outputText value="#{item}" />
              </rich:column>
          </rich:extendedDataTable>
      </div>		    
      </h:form>
      
      Show
      1) Render table inside container with "display:none"; 2) Show it with JavaScript <a href= "#" onclick= "jQuery( '#tableWrapper' ).show(); return false ;" >show</a> <h:form id= "mform" > <div id= "tableWrapper" style= "display:none;" > <rich:extendedDataTable id= "table" value= "#{testBean.items}" var = "item" style= "height:300px;width:400px;" > <rich:column> <f:facet name= "header" > <h:outputText value= "Column 1" /> </f:facet> <h:outputText value= "#{item}" /> </rich:column> </rich:extendedDataTable> </div> </h:form>
    • Workaround Description:
      Hide

      Comment the following line in updateLayout (component JS extendedDataTable.js)

      this.normalPartStyle.display = "none";
      
      Show
      Comment the following line in updateLayout (component JS extendedDataTable.js) this .normalPartStyle.display = "none" ;

      Description

      rich:extendedDataTable is blank when shown after it was hidden.
      Firefox: complete table is blank.
      IE: table header is not displayed.
      Table is shown after resizing the window.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bleathem Brian Leathem
                  Reporter:
                  ruser Nick Dev
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 hour
                    1h
                    Remaining:
                    Remaining Estimate - 1 hour
                    1h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified