Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1
-
Fix Version/s: 3.2
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7, Chrome, Firefox, IE
Description
When an EL expression is in-line (i.e. not as the value of an output component), it is not evaluated when exported, but the expression itself is exported. For example, the following markup will export the characters '#{row.id}' in the generated file, for every row:
<ace:column headerText="col1">
#{row.id}
</ace:column>
The following markup will export the value obtained after evaluating the expression (e.g. 'id001').
<ace:column headerText="col1">
<h:outputText value="#{row.id}" />
</ace:column>
The ace:dataExporter component needs to support in-line EL expressions as well.
<ace:column headerText="col1">
#{row.id}
</ace:column>
The following markup will export the value obtained after evaluating the expression (e.g. 'id001').
<ace:column headerText="col1">
<h:outputText value="#{row.id}" />
</ace:column>
The ace:dataExporter component needs to support in-line EL expressions as well.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Field | Original Value | New Value |
---|---|---|
Attachment | dynamicData.csv [ 14847 ] | |
Attachment | dynamicData.pdf [ 14848 ] | |
Attachment | Case11558.rar [ 14849 ] |
Salesforce Case | [] | |
Fix Version/s | 3.2 [ 10338 ] | |
Assignee Priority | P2 | |
Assignee | Arturo Zambrano [ artzambrano ] |
Salesforce Case | [5007000000NJO3T] |
Summary | ace:dataExporter issue with dynamic ace:datatable | ace:dataExporter, in-line EL expressions aren't evaluated but exported verbatim |
Description |
There is an issue with ace:dataExporter and dynamic ace:dataTable. When an attempt is made to use dataExporter the file is downloaded but contain EL expressions in table cells similar to the following #{row[colModel.value]} ... #{row[colModel.value]}.... #{row[colModel.value]}... #{row[colModel.value]} instead of the data from a table. To reproduce use the source code attached to this ticket. Sample outcome from the export action has been attached as well |
When an EL expression is in-line (i.e. not as the value of an output component), it is not evaluated when exported, but the expression itself is exported. For example, the following markup will export the characters '#{row.id}' in the generated file, for every row: <ace:column headerText="col1"> #{row.id} </ace:column> The following markup will export the value obtained after evaluating the expression (e.g. 'id001'). <ace:column headerText="col1"> <h:outputText value="#{row.id}" /> </ace:column> The ace:dataExporter component needs to support in-line EL expressions as well. |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P2 [ 10011 ] |