I am displaying list of my custom objects on liferay portlet. Now my problem is I want to provide Export feature to user. There will be export link below list displayed. When user click on that button it will download the displayed list as excel file.
I am generating excel file while generating the list for display.So, now my problem is how exactly export link should behave.
My export button code.
<portlet:actionURL name="exportURL" var="exportURL"></portlet:actionURL>
<p><a href="<%=exportURL %>">← Export</a></p>
One approach I am thinking is after generating excel file I can upload it in Document library of Liferay and then provide download link as export link on portlet is it a good approch?