General

How to Access CSS Images

Posted by on September 3, 2008 at 10:00 am

Need to access an image from your CSS file? Prepend the final portlet name followed by the path of the images folder. Here’s an example: hellospring-portlet/images/hellospring.png And that’s all there is to it.

Validator Class

Posted by on August 28, 2008 at 6:01 am

Liferay comes with a built-in Validator class (com.liferay.portal.kernel.util.Validator) that you can access from your plugin portlets. It features some basic static validation methods useable in your code like checks for Null and email address which are just two among many others. Check it Out.  

Markup Coding Tip

Posted by on August 27, 2008 at 11:35 am

Never place tags like <html> and <body> in your view markup (JSP, PHP, etc). Its the job of the portlet container to aggregate the final html code for all portlets and to pass that to the portal for rendering. So, using those tags can result in Done, with Errors on Page messages by your browser. [...]