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

        Hide
        Arturo Zambrano added a comment -

        Fixed at revision 28419 in the trunk and at revision 28420 in the maintenance branch.

        Show
        Arturo Zambrano added a comment - Fixed at revision 28419 in the trunk and at revision 28420 in the maintenance branch.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: