I need to refresh one table on a page without reloading the full page. Does anyone know good method for doing this?
I created separate a jspf page with one table, and rendered it by Ajax request <portlet:renderURL>, but the page wraps in the default liferay theme. Is there another way to get the page date without the theme?
<portlet:renderURL var="testURL">
<portlet:param name="jspPage" value="/jspf/test.jspf" />
</portlet:renderURL>
<script>
$("#test-button").click(function() {
$("#test-table").load("<%= testURL %>");
})
</script>
To use Ajax in Liferay-MVC you should create a
resourceURLLink and handle it inserveResourcemethod in the Portlet Class.then you should provide properly result in
serveResourceMethod of your portlet class.in addition you can get your parameter(pageAddress) by using
resourceRequestObject