Created
July 22, 2018 22:09
-
-
Save cmaggiulli/fc9c4df24a462e3e91c86317ac7a9d35 to your computer and use it in GitHub Desktop.
How to get Liferay's portlet namespace from the JavaScript SDK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI().ready('aui-base', 'aui-node', 'aui-io-request', function(A) { | |
}); | |
Liferay.Portlet.ready(function(portletId, node) { | |
alert(Liferay.Util.getPortletId(portletId)); | |
}); | |
Liferay.on('allPortletsReady', function() { | |
}); | |
<!-- | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %> | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment