render « Liferay « JSP-Servlet Q&A





1. Rendering JSP in ALLOY DIALOG    stackoverflow.com

I am using ALLOY DIALOG in Liferay 6.0.5 as follows: function countPopup(){

AUI().use('aui-dialog', 'liferay-portlet-url', function(A) {

        var dialog = new A.Dialog({
     ...

3. How to return a rendered JSP in response to an Ajax call?    liferay.com

I know different response types such as XML, JSON, and HTML snippet can be returned in response to an Ajax call. Currently, I want to return an HTML snippet, but I don't like HTML snippet coded inside the Java Action class, which, I believe, is a bad programming style, specially in case of large HTML snippets. I prefer to render a ...