Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
<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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Fixed at revision 28419 in the trunk and at revision 28420 in the maintenance branch.