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.