Developing JSF 2.0 Portlets with Liferay in Eclipse

A lot of visitors come to my blog to find out the easiest way to develop JSF 2.0 portlets with Eclipse. Here is just a note from me: Although Liferay IDE allows you to select "create JSF 2.0" portlet, it can´t do that right now. You will need Liferay 6.1 / plugins-sdk 6.1 to do that. There is nothing else for you but to create a portlet on your own.

Or ... you could use this link to download a JSF 2.0 portlet that you can unzip into your plugins-sdk/portlets folder: https://rapidshare.com/files/460901106/HelloJSF2World-portlet.zip

It works with Liferay 6.05 CE and already has a standard Liferay build script. What you have to do before that is to deploy the following libs to your servers lib directory (You can get them from portletfaces.org):

  • alloyfaces-
  • commons-fileupload-1.2.2.jar
  • commons-io-1.3.2.jar
  • jboss-el-2.0.0.GA.jar
  • jsf-api-2.1.1-b03.jar
  • jsf-impl-2.1.1-b03.jar
  • portletfaces-bridge-2.0.0.jar

That should be all to have your very own JSF 2.0 Portlet in Liferay.

If you like this tutorial it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.