Good Software Application solve problems, but great ones not just solves the problem, but intuitively give users the look and feel of the solvable problem. Applications are usually themed to match of its purpose and value. The twitter application has little bird icons, same as its name and its purpose. Facebook’s simplistic approach made the users visit their site on daily basis because the site’s look and feel is pretty straight forward.
What’s good about Liferay is that all of its components, from themes, portlets to extensions and hooks are all customizable and injectable – injectable meaning that developers can create the components independently and plug it. Themes is not an exception:
Download the Liferay Eclipse Plugin
Go to > Help > Eclipse Marketplace > Search for “Liferay”
Once installed, Liferay Tool bar should be displayed.
Note: Install the LiferaySDK and Liferay Portal Instance with the chosen Application Server (I used the lightweight one, Liferay bundled with Tomcat).
Create the Theme on your sketch pad first (plan it)
Not a sketch, but I did pull out a template from http://www.freecsstemplates.org
A simple bar, content bar and menu / navigation bar should do it. Now to create the actual project and use the theme, go to the next step below.
Create the Theme Project
New > Project > Liferay Portal > Choose Themes
Creating a new project will generate default sources, folders: css, images, js and templates. Now, an important note to this one, these are not the files that you need to edit. I personally use it as my reference.
Re-create these folders under the _diffs directory. This is where the theme development begins.
- CSS: create a custom.css file on the CSS directory under _diffs
- VM: Create a portal_normal.vm file under templates of _diffs
Test, Hit Right Click Project > Liferay > SDK > Deploy Target
Login > Go To Pages > Site Pages and Choose the Theme!
Your theme is now ready!
Download the Project here.
Java Platform, Enterprise Edition is a widely used platform for enterprise server programming in the Java programming language.
This book covers exciting recipes on securing, tuning and extending enterprise applications using a Java EE 6 implementation.The book starts with the essential changes in Java EE 6. Then they will dive into the implementation of some of the new features of the JPA 2.0 specification, and look at implementing auditing for relational data stores.They will then look into how they can enable security for their software system using Java EE built-in features as well as using the well-known Spring Security framework. They will then look at recipes on testing various Java EE technologies including JPA, EJB, JSF, and Web services.Next they will explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks.At the end of the book, they will cover managing enterprise application deployment and configuration, and recipes that will help you debug problems and enhance the performance of your applications.