This JSR development tutorial shows how to master request-response programming using the PortletRequest and PortletResponse objects of the Portlet JSR (Portlet ) defines a lifecycle for events, so that eventing is name as defined in the previous code example in the portlet section of the file. Portlet Tutorial, Java Portlet, Portlet Example, Java Portlet Tutorial, What is Portlet , JSR has introduced the using of annotations for controlling things were.
|Genre:||Health and Food|
|Published (Last):||7 October 2012|
|PDF File Size:||15.81 Mb|
|ePub File Size:||4.58 Mb|
|Price:||Free* [*Free Regsitration Required]|
Portlet filter mappings declared in the global portlet. The path to the global portlet. InJava Portlet Specification 1. These modes need to be defined in the portlet.
InJava Portlet Specification 2.
Refer to the documentation for Rational Application Developer for complete setup instructions. GenericFacesPortlet as portlet class. Window pportlet mimic window behavior in a traditional desktop environment:. When rendered, the portlet’s title is displayed as the header in the portlet window, unless it is overridden programmatically.
The Hello World portlet provides an introduction to writing your first portlet. So what do these specifications define?
Creating a simple portlet
An action phase is a phase where some state changes. This sample is used in the following examples. Those areas contain different windows and each window contains portlet:.
This parameter defines which page to display on the ‘help’ mode. Tutotial portal can be considered as a series of web pages with different areas within them. It is split in different pieces.
Do you wish you could use npm and npm packages in your portlets? In the response, the portlet returns content e. If you suspect a classloading problem, ensure that the required classes are in the appropriate classpath according to the classloading hierarchy. Get a request dispatcher on a file located within the web archive. In many ways, writing your application as a portlet is easier than writing a standalone application. Define the portlet name.
The other difference compare to a regular portlet application, can be found in the portlet descriptor.
Creating a simple portlet
Maximized A portlet may be tutoral only portlet displayed on this page. With the XML configuration below, the filter ApplicationMonitoringFilter involves in request handling on any deployed portlet. The GenericPortlet render implementation calls our implementation when the view mode is requested. More than one portlet application may be defined in this file:. The render phase will have access to render parameters that will be passed each time the portlet is refreshed with the exception of caching capabilities.
Potrlet particular class loader can reference other classes as long as the other classes can be loaded by the same class loader or any of its ancestors, but not its children. The portlet takes up an entire page. With that said, you can use a sjr of technologies to develop portlets that run on Liferay Portal.
Portlets – Liferay – Liferay Developer Network
That is, the WAR file name 28 be changed, but the uid must indicate the original uid used during portlet installation. Use this file if you use tktorial from the Public SPI javadoc package. Before you package your portlet, the class files and resources must be arranged in the WAR file directory structure described here.
We use a form: If you are familiar with the web. Do you want to use a portlet development framework with a UI component model that makes it easy to develop sophisticated, rich Portlets are responsible for generating markup fragments, as they are included on a page and are surrounded by other portlets.
It does not have to be the class name. It is used during deployment. A good user experience is the measure of a well-designed site. Portlft portlet classes, resources, and descriptive information in a single file makes distribution and deployment of portlets easier.