Any ideas yet, the buttons are disabled, that is what I meant by freeze, sorry :-)
1. I have implemented resourceURL and overridden serveResource on the portlet to serve a csv file.
2. I click on the download button on the portlet.
3. In the serveResource method, I make a call to ServletResponseUtil.sendFile in the serveResouce method.
4. The download prompt on the browser appears, But now all the buttons including the download button are disabled.
My goal is to enable the buttons that are getting automatically disabled during the download process..
Is this some native browser behavior that is tied to downloading a resource, not sure why this is happening, I am calling the submit form from Liferay.provide, see my jsp code below,
I have tried the following:
1. adding return false to the submitForm at the end in the second argument "<portlet:resourceURL></portlet:resourceURL>;return false;" This does not work.
2. I am trying to refresh, but again this enables the buttons but download does not happen :-(
Any help is appreciated.
<aui:script>
Liferay.provide(
window,
'<portlet:namespace />downloadOrders',
function() {
document.<portlet:namespace />fm.<portlet:namespace /><%= Constants.CMD %>.value = "downloadOrders";
document.<portlet:namespace />fm.<portlet:namespace />exportOrderIds.value = Liferay.Util.listCheckedExcept(document.<portlet:namespace />fm, "<portlet:namespace />allRowIds");
submitForm(document.<portlet:namespace />fm, "<portlet:resourceURL></portlet:resourceURL>");
},
['liferay-util-list-fields']
);
</aui:script>
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.