ICEfaces
  1. ICEfaces
  2. ICE-7929

ace:excludeFromExport does not obey rendered attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.1, EE-3.0.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Tomcat 7, ICEfaces 3 trunk code rev#28412, showcase app
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      To reproduce, replace ace:dataTable content in dataExporterExcludeFromExport.xhtml file:

      <ace:dataTable id="carData"
                                        value="#{excludeFromExport.cars}"
                                        var="car"
                                        rows="15">
                     <ace:column headerText="Name">
                          <h:outputText value="#{car.name}"/>
                      </ace:column>
                      
                      <ace:column headerText="Chassis / Weight">
                          <h:outputText value="#{car.chassis} / ">
                              <ace:excludeFromExport rendered="true"/>
                          </h:outputText>
                          <h:outputText value="#{car.weight}lbs.">
                              <ace:excludeFromExport rendered="false"/>
                          </h:outputText>
                      </ace:column>
                      
                      <ace:column headerText="Accel / MPG">
                          <h:outputText value="#{car.acceleration} / ">
                              <ace:excludeFromExport rendered="false"/>
                          </h:outputText>
                          <h:outputText value="#{car.mpg}">
                              <ace:excludeFromExport rendered="false"/>
                          </h:outputText>
                      </ace:column>
                      
                      <ace:column headerText="Cost">
                          <ice:outputText value="#{car.cost}">
                              <f:convertNumber type="currency"
                                               currencySymbol="$"
                                               groupingUsed="true"
                                               minFractionDigits="2"
                                               maxFractionDigits="2"/>
                              <ace:excludeFromExport rendered="false"/>
                          </ice:outputText>
                      </ace:column>
                  </ace:dataTable>

      PLEASE NOTE: Only the name column will be exported to a file of given type.
      Rendered attribute value (either static or dynamic via EL expression) is not taken into consideration while inside of the ace:excludeFromExport component.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28420 Tue Mar 20 12:55:41 MDT 2012 art.zambrano ICE-7929 added support for 'rendered' attribute in ace:excludeFromExport
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/Exporter.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28419 Tue Mar 20 12:49:30 MDT 2012 art.zambrano ICE-7929 added support for 'rendered' attribute in ace:excludeFromExport
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/Exporter.java

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: