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.
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.