Conflicting Jar Files

One thing I discovered while developing the sample Spring portlet: jar file conflicts between the plugin portlet and Liferay are a big headache. If Liferay has a version different from the one in your plugin, expect some very strange, confusing exception errors. Its Best to just make sure you only include the jars you need in your plugin package.

Tags:
Posted in General by Jeff Robinson. Comments Off

Hello Spring Portlet

I’ve placed a simple, Hello World type Spring portlet in the downloads section. Check it out. It uses the Spring ParameterizableViewController to forward to the view JSP.

Tags:
Posted in Annoucements by Jeff Robinson. Comments Off

Liferay & Struts

Without a doubt, Struts is the predominant framework used by the Liferay designers.

In the extension environment, edit struts-ext.xml and tilesdef-ext.xml to add your own Struts actions and forwards. In the plugin environment, the same files are used but without the  “-ext” portion in the name.

Finally, rest assured that Liferay will add your Struts actions to its own during runtime.

 

Posted in General by Jeff Robinson. Comments Off