Posts Tagged ‘liferay’

JavaScript Liferay.PortletURL

Liferay Portal has a JavaScript library that allows the creation of portletURLs inside your JavaScript code. Something like:

<input type="button" value="<liferay-ui:message key="cancel" />"
onclick="<portlet:namespace/>_back();"/>
 
<script type="text/javascript">
 
function <portlet:namespace/>_back() {
 
var backURL = Liferay.PortletURL.createRenderURL();
[...]

Liferay hook war

Liferay Hooks are plugins that let you customise some of the Portal functionality.
In this post we are creating a simple Liferay hook to change the value of a property in the portal.properties, override one of the Portal jsps and handling an event.

Displaytag library in your portlet

These are – roughly – the steps that you need to follow if you are planing to use the displaytag library in your portlet.