How to Access CSS Images

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.

Tags:
Posted in General by Jeff Robinson. Comments Off

Hello Struts Portlet

I’ve placed a very simple Hello Struts portlet in the downloads section. It doesn’t do nearly enough to show the power of Struts in Liferay. Look for a future Struts portlets that does much more.

Tags:
Posted in Annoucements by Jeff Robinson. 2 Comments

Validator Class

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.

 

Posted in General by Jeff Robinson. Comments Off