We will first get brief introduction about Spring MVC (Web MVC) framework and then we see how to write Spring MVC Portlet in Liferay step by. Spring MVC is one of the most popular framework to create portlets. Liferay supports creating Maven Spring MVC Portlet. You can add multiple. Liferay MVC vs Spring MVC is one of the most hot topic for liferay developer. It always creates confusion as what to choose when. In this article I.
|Published (Last):||4 July 2006|
|PDF File Size:||20.67 Mb|
|ePub File Size:||12.77 Mb|
|Price:||Free* [*Free Regsitration Required]|
Constructor threw exception; nested exception is java. To get a feel for it, read this: Mv your controllers and your views as you normally would in a Spring MVC portlet.
One way is by calling the static utility methods.
Provide an application context file portlet-context. Thats it final project Structure is: Now the front controller, org.
Spring MVC Portlet – Liferay – Liferay Developer Network
This allows for reuse of the entire Servlet-based View support even in a Portlet environment. Service Hook in Liferay. Next consider how to package and deploy your Spring MVC portlet.
Liferay portlet plugins that are packaged as WAR files should include some Liferay specific descriptors.
The DTD is here. Error creating bean w ith name ‘com. Error creating bean with name ‘com. Find the complete DTD here. Instantiation of bean failed; nested exception is org. But for clarification I can tell for setting up a Ilferay portlet you only need to make few changes in your current portlet.
NullPointerException Hope anybody can help me Johannes Ligeray 1 1 2. Find the complete DTD here. Accounting for multiple service implementations, using the best service implementation available taking into account the service ranking property. In case the link goes down, could you please expand your answer to include information on how to do this? We can have multiple action methods in mvx class.
PortletRequest s to javax. Almost identical to any other Spring MVC portlet. ServiceTracker to track the service of the type you need. You are using the wrong flavour of Spring mvc here.
Spring MVC Portlet
Add portlst to web. Your application must be able to convert javax. Could not instantiate bean class [com. The DTD is found here. ServletRequest s and back again. For the details on implementing a service tracker, read the Service Trackers tutorial. In addition to any web. Provide an application context file portlet-context.
Lets Start this step by step: Almost identical to any other Spring MVC portlet.
Configuring a Spring MVC Portlet
Post as a guest Name. A complete list of the attributes you can set can be found here. Edit Mode Controller An edit mode controller might contain render methods and action methods.
It covers the high points, assuming you already have familiarity with Spring MVC. Search Container in Liferay. Email Required, but never shown.