I'm testing in Firefox 3.0.8 with Firebug.
I have rich:menuItems that export from a rich:dataTable.
For example:
Code: Select all
<rich:menuItem id="exportAsExcel" value="Excel" submitMode="server">
<opt:exportActionListener type="xls" target="incidentList" fileName="incidents" excludeColumns="0" />
</rich:menuItem>
(1) The 1st time I export, everything works great. But when I try to export a 2nd time, the entire page reloads and no export ever happens.
(2) After the page reloads, it no longer has the PrimeFaces resources in the head. And this breaks a p:lineChart that I have elsewhere on the page. Firebug appropriately shows a "YAHOO is not defined" error. My facelets template has p:resources in the head section and it all works perfectly before the export-induced page reload.
BTW, the exact same thing happens if I hook the opt:exportActionListener to a h:commandButton instead of the rich:menuItem. Has anyone ever seen this before?