Thursday, February 28, 2013

Passing parameter in JSF

In JSF, there are several ways to pass data from the client (browser) to the server.

1. value binding
Which is the default in JSF
eg
value binding in JSF

2. f:param
eg,
passing parameter with f:param in JSF

to retrieve the value in managedBean, write the following codes.
passing parameter with f:param in JSF

3. f:setPropertyActionListener

Sunday, February 24, 2013

Workaround for p:column colspan

Recently, I was facing a problem with the p:datatable colspan attribute.
I wanted to conditionally colspan the table cell, but I failed to do that. And I found its impossible to do it now from the Primefaces forum.

conditional colspan in p:column

Finally, I came out with a workaround with jQuery.
Instead of the colspan attribute, I used the styleClass attribute to dynamically adjust the table's colspan.

Tuesday, February 19, 2013

How to setup Liferay Remote IDE Connector

Liferay Remote IDE Connector provides remote development and deployment support from Liferay IDE. With the help of this plugin, we may also enable the remote development and deployment to non-tomcat  Liferay bundled. 

This post shows the steps to setup the Liferay Remote IDE Connector and the target Liferay with JBoss bundled. 
Theoretically, it should works fine with other server bundled as well. 

Platform:
Liferay 6.1.1
Eclipse Juno

Prerequisites:

Steps:
1. Start the Remote Liferay instance or local non-tomcat Liferay instance.
2. Deploy the Server Manger Web plugin into the target Liferay instance. 
    put the downloaded lpkg file into the <TARGET_LIFERAY>/deploy folder

Friday, February 15, 2013

How to change portlet title's icon in Liferay

When we create a new portlet in Liferay with Liferay SDK, there come with a default icon in front of the portle title.
We can actually change the icon, so that it is more precise to present our portlet.

change Liferay portlet's title icon

The purpose to change the default icon is to differentiate our custom portlet with Liferay's portle, we can change the icon to our flagship logo, to increase users' awareness.

It is pretty simple to change the default title icon, below are the steps.

Wednesday, February 13, 2013

How to integrate OpenAM with Liferay for single sign on (SSO)

the objective of this post is to show the steps of how to enable SSO in Liferay with OpenAM.

Assumption:
1. OpenDJ is installed as LDAP for Liferay
2. OpenAM is installed.

Required software:
1. Liferay 6.1.1
2. OpenDJ 2.5
3. OpenAM 10.2

Steps:
1. login to Liferay as Administrator
2. Go to > Control Panel > Portal Settings > Authentication > Open SSO
3. Fill in the following details

LinkWithin

Related Posts Plugin for WordPress, Blogger...