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.
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.
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.
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. [...]