I am trying to hide a primeface block when the exporter process finish. I can not remove ajax=false because I did't have my report. I try to call a javascript function on the server by requestContex but doesn't work
this is my code
<p:commandLink ajax="false" style="float:right" id="excelSubmissionLinkId" onstart="PF('oneBlock').show()" oncomplete="PF('oneBlock').hide()" process="@none" immediate="true"
update="@none">
<p:graphicImage url="/images/excel.png" width="24" />
<pe:exporter type="xlsx" target="submissionHistoryTableId" fileName="SubmissionHistory-excel" datasetPadding="4"
facetBackground="#{mediaDetailBean.backgroundColor}" postProcessor="#{submissionsHistoryBean.postProcessExcel}" />
</p:commandLink>
Any ideas?
Thanks
Call a javascript function on pe:exporter oncomplete
You can't use ajax request with exporter because it works with non-ajax only.Look at the below thread to notify complete behavior http://www.javacodegeeks.com/2013/07/mo ... ified.html
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests