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!

JSPX is frozen after exporting to excel in ADF

4022415Jun 14 2019 — edited Jul 8 2019

Hi

I am working on jdev 12.2.1.3.0. I have below code in my jspx to export data to excel.

af:commandButton text="#{IAT_EXPORT_BUTTON}" id="cb1"

                                          actionListener="#{ItemAuditTrailBean.exportSystemItemsToExcel}"

                                          inlineStyle="AFDataText"/>

The excel get exported with correct data. Once the excel is opened and then closed, my jspx page gets frozen.

Nothing happens on the page. I have tried the below code to refresh the page forcily but it did not solve the issue.

//added for refresh F5

        fc.responseComplete();

        FacesContext fc1 = FacesContext.getCurrentInstance();

        String refreshpage = fc1.getViewRoot().getViewId();

        ViewHandler ViewH =  fc1.getApplication().getViewHandler();

        UIViewRoot UIV = ViewH.createView(fc1,refreshpage);

        UIV.setViewId(refreshpage);

        fc1.setViewRoot(UIV);

However browser refresh functionality works.

Please help.

Comments
Post Details
Added on Jun 14 2019
11 comments
705 views