Liferay Portlet Objects For JSPs¶
You may have noticed the <liferay-portlet:defineObjects>
tag in your JSPs. Similar to the theme:defineObjects tag, when you include this tag in your JSP, you gain access to several variables that, in this case, return useful information about your portlet. Note that the JSR-286 specification defines four lifecycle methods for a portlet: processAction, processEvent, render, and serveResource. Some of the variables defined by the <portlet:defineObjects/>
tag are only available to a JSP if the JSP was included during the appropriate phase of the portlet lifecycle. These objects are described in the table below:
Object |
Description |
---|---|
|
Represents the request sent to the portlet to handle an action. |
|
Represents the portlet response to an action request. |
|
Represents the request sent to the portlet to handle an event. |
|
Represents the portlet response to an event request. |
|
Represents the request sent to the portlet to handle its HTML header or HEAD section. |
|
Represents the portlet response to a header request. |
Provides access to the |
|
Includes the properties returned to the portal and provides a means to add or change properties. |
|
|
Represents the request sent to the portlet to render the portlet. |
|
Represents an object that assists the portlet in sending a response to the portal. |
|
Represents the request sent to the portlet for rendering resources. |
|
Represents an object that assists the portlet in rendering a resource. |
|
Represents the portlet’s configuration including, the portlet’s name, initialization parameters, resource bundle, and application context. |
|
Provides access to a portlet’s preferences. |
|
Provides a Map equivalent to the |
|
Provides a way to identify a user across more than one request and to store transient information about a user. A |
|
Provides a Map equivalent to the |
For more details, visit the Portlet 3.0 API Javadoc.