Dev @ Work

A day in the life of a developer

Reporting on Liferay and the Future of Portal Development

January 28th, 2010 by Bert Willems

From the comfort of my own home, this is Bert Willems reporting on the Liferay and the future of portal development. I haven’t dreamed it up: this is a report of a Liferay webinar I just attended. Paul Hinz, Chief Marketing Officer of Liferay, Inc hosted the webinar. He talked about the role of open source software in enterprise as well as the vision Liferay has about the future of web, portal and social collaboration technologies.

He explained why a lot of things which portals have promised are actually unmet by today’s portals. Most notably is that portal development using the portlet API is hard when compared to develop decentralized applications in for example PHP or Ruby. The learning curve of Java and it’s technology stack is considerably longer compared to other web application frameworks. Due to this fact other frameworks made their way into the enterprise.

He then elaborated on the evolved focus of portals and other web applications: providing a centralized platform for end user to create, share and develop knowledge. This is not something new because it is all around us already. Take a look at LinkedIn for example: I can add this very WordPress blog to my LinkedIn profile and the same goes for my Twitter account; LinkedIn acts as a portal.

Paul envisions that users will developing applications and share them in the same way the develop content together now in the Wikipedia. The focus of technology providers like Liferay will be on facilitating these user developers. A good example here is Apples iPhone with its countless available user build applications.

The focus of the Liferay development team for 2010 is:

  • Content Management Interoperability Services & integration of 3rd party content repositories
  • User defined workflow & business processes
  • Stronger personalization and enhanced collaboration tools
  • Faceted search & other search improvements

Notice to focus on facilitation and easy of extension rather then providing new features.

This is, in my humble opinion, a positive paradigm shift from classic wisdom owners (fortune 500 companies, patent holders, publishers, standards committees etc.) to wisdom of the crowd. Why shouldn’t we use the collective knowledge in all of our minds and combine it in a productive way so we can solve problems together? I see this shift in the software development world (see the microformats opposed to standardization committees like W3C and JCP) for example but also in the publishing industry (Wikipedia anyone?). There is a lot more to say about this subject but I will save that for a later post. Bye for now.

Setting up Liferay with MySQL

January 24th, 2010 by Bert Willems

Welcome to the second article in a series of articles on Liferay. In this series I will show you various aspects of Liferay, Liferay installation, Liferay maintenance and Liferay development so lets get started. These articles assume that you have basic Java development skills.

In this post I will show you how to configure Liferay to use MySQL instead of Hypersonic. I assume you have followed all the steps in the previous post or that you are using a JNDI datasource. I also assume that you have installed MySQL on your system already. If not, please install it first. If the portal is still running stop it first before continuing with the next steps.

Read the rest of this entry »

Posted in Java | No Comments »

Setting up Liferay in JBoss 5.1

January 24th, 2010 by Bert Willems

Welcome to the first article in a series of articles on Liferay. In this series I will show you various aspects of Liferay, Liferay installation, Liferay maintenance and Liferay development so lets get started. These articles assume that you have basic Java development skills.

In this post I will show you how to install Liferay 5.2.3, the latest communitie edition, on your local machine in the JBoss 5.1 application server, I assume you have a Windows machine. If you are running a different OS you can take the same steps but some paths will change depending on your OS. There are quite a few steps that need to be taken in order to set up Liferay, I will go through each and every step in detail. Read the rest of this entry »

Posted in Java | 10 Comments »

Liferay: Good, Bad or Ugly?

November 2nd, 2009 by Bert Willems

liferay logoHello, I have been developing application for Liferay for about one month now and I thought it would be a nice idea to share my experience. This is no thorough review of the product, just my personal experience with Liferay.

For those who don’t know what Liferay is: it is a portal server based on Java technology. It allows you to create portal and community websites easily. It provides more than 60 out-of-the-box and ready-to-use application called ‘portlets’. Those ‘portlets’ range from simple editorial blocks to blog engine and a chat portlet. It contains a full blown content management system and some powerful collaboration tools. See http://www.liferay.com/web/guest/products/portal/features for a comprehensive list of features.

Anyway, I have been working with Liferay for about one month now, specifically for one project. I won’t elaborate on the project in details but it is a career portal with jobs, resumes and company presentations. I have developed a considerable part of the code myself and it has been an interesting experience because I never wrote one line of Java before: I have a c++/.NET background. Fortunately, I have a good, experienced Java team to back me up.

Okay, lets get back to the subject now. I will separate my experiences into three categories:

The good

In my opinion Liferay is a complete product, the out of the box portlets are useful and you can actually create a full portal just with those portlets: that is impressive.

I also like the fact that Liferay provides pre-packaged version of their portal software which you can download and run without any special configuration. You can get a Liferay portal up and running in 5 minutes.

The Liferay community is active. You can find a lot of information in the WIKI and on the forum. I also like the fact that Liferay provides seminars around the world, to me that is a sign of professionalism.

I also like the fact that Liferay offers custom JS and CSS includes per portlet, this allows me add style and JavaScript without having to code it into the portlet itself  or in a Liferay theme.

The API is pretty powerful and usable, although it is hard to find out how it works (seen second point of The Bad).

The bad

What I think is really bad on Liferay is that there are still some major bugs open in version 5.2.3. Those bugs should have been fixed a long time ago IMHO. I am not sure if those bugs are fixed in the enterprise version of Liferay, so I am judging on that. For example LPS-114.

One other thing I think is bad on Liferay is the lack of API documentation. It is really hard to find how certain things are achieved or what methods do exactly. For example I have spend some hours finding out how I can retrieve a list of pages of the current community. I have searched the Liferay Wiki, the Liferay forums and used Google without success: I ended up reverse engineering Liferay itself. It is working beautifully now but it wasn’t a good experience figuring it out.

The Ugly

Even though Liferay is supposed to be fully compliant with JSR-168 and JSR-286, I can’t get the custom portlet mode to work properly. Although this seems to be an optional part of the JSR-286 I  assume that a enterprise product like Liferay would support this feature. I had to apply a work around which resulted in ugly code.

Considering all above points, I can say I am fairly impressed by the Liferay portal. I would choose it again for portal project.

Please let me know if you agree or disagree with me, lets get into a debate regardin Liferay! It deserves it!

Building a JSF Portlet for Liferay

August 30th, 2009 by Trilobyte

In this article I will show you how to build a portlet for the Liferay Portal using JavaServer Faces (JSF). I am not going to explain in detail how to setup Liferay, there are a lot of articles on that subject. I assume you have Java, Tomcat, Liferay, Ant and the Portal plugin SDK up and running.

Read the rest of this entry »

Posted in | 6 Comments »

Liferay Portal Articles

August 30th, 2009 by Bert Willems

Here is a list of my articles about the award winning Liferay Portal. Liferay Portal provides more than 60 portlets out of the box and growing. It is a Java based portal implementing JSR-168.

Find all articles here

Posted in | No Comments »

My First Java Steps

August 25th, 2009 by Bert Willems

Hello all, sorry for the radio silence lately, you might wonder what I have been doing lately. Well I have committed a terrible sin against the .NET framework (my previous home :P ): I started learning Java.

Why Java? Because several clients of Liones demand that their applications must be build on the Java platform and I am deeply involved in the process. I am not going to bother you with the organizational side of the process, I will focus on sharing my experience.

Learning Java isn’t really the objective for me, it is just another programming language and C# is similar enough to not cause any problems for me to program in Java. The real objective is to be able to develop applications (called portlets) for the Liferay portal framework. The hidden challenge, for me, turned out to be setting up the environment.

I got everything up and running today: Java, Ant, Tomcat, Liferay and I developed my first custom portlet (an application for Liferay) using above technologies and Java Server Faces. I will post an article on how I did it soon!

Posted in Java | 1 Comment »