Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF export to Excel / CSV doesn't work

ShayGFeb 19 2015 — edited Feb 19 2015

Hi,

We're trying to export an af:treeTable to excel using the menu.

As shown in the source below.

When clicking the menu item for the export nothing happens, the page itself freezes.

When trying to hit the refresh button on the browser, the download dialog appears then and and only then!

at first we thought it to be a browser issue, so we tried to use different browsers and had the same result on each and every one.

<af:commandMenuItem text="Export To Excel" id="cmi5"

                                                                    binding="#{backingBeanScope.Untitled1.cmi5}"

                                                                    immediate="true">

                                                        <af:exportCollectionActionListener type="excelHTML"

                                                                                           exportedId="tt1"

                                                                                           filename="test.xlsx"

                                                                                           title="test"

                                                                                           charset="UTF-8"/>

                                                </af:commandMenuItem>

When the download window appears after hitting refresh the log shows the following message:

<oracle.adf.view> <ExportCollectionActionListener> <processAction> <EXPORTED_ROWS_TYPE_NOT_SUPPORTED>

<org.apache.myfaces.trinidad.component.UIXCollection> <UIXCollection> <_verifyComponentInContext> <COLLECTION_NOT_IN_CONTEXT>

Will appreciate any help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2015
Added on Feb 19 2015
4 comments
592 views