How Liferay portlet works?
How Liferay portlet works?
Web apps in Liferay DXP are called portlets. Like many web apps, portlets process requests and generate responses. In the response, the portlet returns content (e.g. HTML, XHTML) for display in browsers.
What does OSGi stand for?
Open Service Gateway Initiative
OSGi (Open Service Gateway Initiative) is a Java framework for developing and deploying modular software programs and libraries.
How do I create a Spring MVC portlet in Liferay 7?
Below are the steps to create a Spring MVC portlet.
- Create Portlet project skeleton by creating Liferay MVC Portlet.
- Define Portlet class for Spring MVC Portlet.
- Create Spring application context file.
- Put Spring JARs into Classpath.
How to init a portlet in Liferay?
The Portlet interface exposes the init method as: void init (PortletConfig config) throws PortletException The PortletConfig interface is to retrieve configuration from the portlet definition in the deployment descriptor. The portlet can only read the configuration data.
Is there a portlet filter in Liferay DXP?
Liferay DXP does, however, provide utility methods that can access the ServletRequest and query parameters. Portlets also have a portlet filter available for each phase in the portlet lifecycle. Portlet filters are similar to servlet filters in that they allow request and response modification on the fly.
What does configuration information do in Liferay 7.3?
The configuration information contains the portlet name, the portlet initialization parameters, the portlet resource bundle and the portlet application context. Generates the portlet’s contents based on the portlet’s current state.
Why do we need a Liferay MVC framework?
Liferay’s portlets use it. That means there are plenty of robust implementations to reference when you need to design or troubleshoot your Liferay applications. The Liferay MVC portlet framework is light, it hides part of the complexity of portlets, and it makes the most common operations easier.