Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA
-
Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Salesforce Case Reference:
Description
Feature Request: The ace:chart has the capability to export an image of the chart. This is currently all client side and the image is displayed to the user through an graphic image tag. This request is to investigate the potential to export the image to the server side.
Activity
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Fix Version/s | 4.0 [ 11382 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #37411 | Wed Aug 14 13:33:41 MDT 2013 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/util/Base64.java
|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #37408 | Wed Aug 14 12:49:41 MDT 2013 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/chart/Chart.java
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/chart/ChartMeta.java
MODIFY
/icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/chart/chart.js
ADD
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/event/ChartImageExportEvent.java
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/chart/ChartRenderer.java
|
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #37407 | Wed Aug 14 12:40:40 MDT 2013 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/util/Base64.java
|
| Fix Version/s | EE-3.3.0.GA_P01 [ 11174 ] |
| Assignee | Mark Collette [ mark.collette ] | Arturo Zambrano [ artzambrano ] |
| Assignee Priority | P3 [ 10012 ] | P2 [ 10011 ] |
| Assignee Priority | P3 [ 10012 ] |
| Fix Version/s | 3.4 [ 10770 ] | |
| Assignee | Mark Collette [ mark.collette ] |
| Field | Original Value | New Value |
|---|---|---|
| Salesforce Case Reference | 5007000000UcxeUAAR |

Committed new feature to trunk at revision 37408 and to the p01 tag at revision 37410.
The Javascript API has a new function 'exportToServer()', which gets the Base64-encoded PNG image and sends the data in a request to the server.
The component has a new attribute 'imageExportListener' that specifies a method listener that takes a 'ChartImageExportEvent' argument and is triggered when an 'exportToServer()' call is made in the client. The method ChartImageExportEvent.getBytes() returns a byte array representing the PNG image.
The class org.icefaces.impl.util.Base64 was augmented to include Base64 decoding utilities, extracted from Apache Commons Codec 1.8.