LIFERAY SPRING MVC PORTLET PDF

It covers the high points, assuming you already have familiarity with Spring MVC. Almost identical to any other Spring MVC portlet. In the portlet. The Spring front controller needs to know where the application context file is, so specify it as an initialization parameter in the portlet. Provide an application context file portlet-context. Next configure your web application.

Author:Kajitaur Zuluk
Country:Republic of Macedonia
Language:English (Spanish)
Genre:Politics
Published (Last):22 March 2015
Pages:72
PDF File Size:18.40 Mb
ePub File Size:15.8 Mb
ISBN:902-4-49594-300-8
Downloads:33141
Price:Free* [*Free Regsitration Required]
Uploader:Meztizilkree



It covers the high points, assuming you already have familiarity with Spring MVC. Almost identical to any other Spring MVC portlet. In the portlet. The Spring front controller needs to know where the application context file is, so specify it as an initialization parameter in the portlet. Provide an application context file portlet-context.

Next configure your web application. In addition to your Spring MVC configuration, your web. Your application must be able to convert javax. PortletRequest s to javax. ServletRequest s and back again.

Add this to the web. To configure the Spring view resolver, add a bean to your application context file portlet-context. Now the front controller, org. Make sure to define any controller classes in your application context file by adding a bean element for each one:. Develop your controllers and your views as you normally would in a Spring MVC portlet.

You must also provide some necessary descriptors for Liferay. Liferay portlet plugins that are packaged as WAR files should include some Liferay specific descriptors.

The descriptor liferay-display. Find the complete DTD here. The descriptor liferay-portlet. A complete list of the attributes you can set can be found here. They define the Liferay roles used in the portlet. The liferay-plugin-package. The DTD is here. In the liferay-plugin-package. MF file when you deploy your WAR file. You have to use Service Trackers. Portlet Configuration In the portlet.

Views To configure the Spring view resolver, add a bean to your application context file portlet-context. With Spring MVC, you can only support one portlet phase in each controller. Edit Mode Controller An edit mode controller might contain render methods and action methods. Liferay Descriptors Liferay portlet plugins that are packaged as WAR files should include some Liferay specific descriptors. Next consider how to package and deploy your Spring MVC portlet.

CATALOGO RUBBERMAID PDF

Configuring a Spring MVC Portlet

If you work as a portlet developer on Liferay Portal based applications, you will probably know that Liferay allows you to use lots of different frameworks in order to accomplish this goal. Both of them are great framewoks and, probably, we will write about them in next articles. But, this article, is intended to be a simple guide for those Liferay developers who are interested in use Springframework in their portlets. If you are wondering why to use Springframework if Liferay provides its own frameworks, the answer is simple: because you can. We live in a world of possibilities, and, if we work with Liferay Portal, we are free to chose how to develop our applications, so let's do it.

AD10 X10 PDF

Spring MVC

.

GITARREN GRIFFTABELLE PDF

Spring MVC Portlet

.

MANNA FROM HEAVEN ZELAZNY PDF

Upgrading a Spring MVC portlet

.

Related Articles