What JSR 286?

What JSR 286?

JSR-286 is the Java Portlet specification v2. 0 as developed under the JCP and created in alignment with the updated version 2.0 of WSRP. It was released in June 2008. It was developed to improve on the short-comings of the version 1.0 specification, JSR-168.

Are portlets part of Java EE?

Java EE specification also features some specifications unique to enterprise computing. These include Enterprise JavaBeans (EJB), servlets, portlets, Java Server Pages (JSP), Java Server Faces (JSF) and several Web service technologies.

What is a portlet container?

The portlet container is the runtime environment for portlets using the JSR 286 Portlet specification, in which portlets are instantiated, used, and finally destroyed. The JSR 286 Portlet application programming interface (API) provides standard interfaces for portlets and backwards compatibility for JSR 168 portlets.

What is meant by portlet application?

Portlets are reusable web modules that provide access to Web-based content, applications, and other resources. Portlets can run on the application server because it has an embedded JSR 286 Portlet container.

What is portlet application in Java?

What is portlet Liferay?

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 Portlet means?

a piece of software that is displayed in a portal (= a website or page on the internet that allows people, especially a group of people who are interested in a particular subject, to get useful information and to find other websites): This portlet can be added to a page by any user with the appropriate privileges.

JSR 286 (Portlet 2.0) defines a lifecycle for events, so that eventing is possible between portlets that are in different web applications. An event is a lifecycle operation that occurs before the rendering phase.

What is portlet in Liferay?

What is portlet application?

What is portlet mode?

Portlet Mode of a Portlet Indicates the function that a portlet performs and generate different content based on the function they perform.

What is JSR Liferay?

Liferay DXP started off as a portal server for Java-based web applications called portlets (see JSR 168, JSR-286, and JSR-362). Portlets process requests and generate responses like any other web application.

How do you make a portlet in Liferay?

Creating a Liferay MVC Portlet in Liferay IDE

  1. Go to File → New → Liferay Plugin Project.
  2. Fill in the Project name and Display name.
  3. Leave the Use default location checkbox checked.
  4. Select the Ant (liferay-plugins-sdk) option for your build type.
  5. Your configured SDK and Liferay Runtime should already be selected.

What is difference between portal and portlet?

A portal is a collection of mini web applications, called portlets. A portal supports features like personalization, content aggregation, authentication, and customization. Portlets act as windowed web applications within the portal, and each window in a portal web page (called a portal page) represents a portlet.

What are the two types of rendering portlet?

Portlet Types

  • Java Server Page (JSP) and HTML Portlets.
  • Java Portlets (JSR 168)
  • Java Page Flow Portlets.
  • Java Server Faces (JSF) Portlets.
  • Browser (URL) Portlets.
  • Struts Portlets.
  • Remote Portlets.
  • Portlet Type Summary Table.

Where is Liferay portlet XML?

The Configuration Files are stored in the docroot/WEB-INF folder. Files stored here include the standard JSR-286 portlet configuration file portlet. xml , as well as three optional Liferay-specific configuration files.

What are the different portlet life cycles?

portlet have similar lifecycle as that of a servlet, portlet needs a portlet container similar to a servlet, we know that servlet have lifecycle of init(), service() and destroy() similarly liferay’s lifecycle have the following stages.

How do I create a portlet in Liferay 7?

Creating Portlet In Liferay 7 DXP

  1. Step 1 : Create Module Project.
  2. Step 2 : Select Project Template.
  3. Step 3 : Provide Component Class Name and Package Name.
  4. Step 4 : Add Portlet Module To Server.
  5. Step 5 : Deploy The Portlet Module Using ‘Gradle Tasks.
  6. 4 comments:

How do I add a portlet to Liferay 7?

Follow below step for add portlet in control panel

  1. Go to Liferay workspace project → modules → new.
  2. Select other → Liferay → Liferay Module Project and click on “Next”.
  3. Enter the project name.
  4. Select “Project Template Name” as “mvc-portlet” and click on “Next”.
  5. Enter a Package name and click on “Finish”.

What is the life cycle of a portlet?

This portlet life cycle method has important role in implementing event based inter portlet communication (IPC). As soon as process event method is completed the portlet container invokes render method. Called by the portlet container to allow the portlet to generate the resource content based on its current state.

What is portlet context in spring?

Spring Portlet MVC supports beans whose lifecycle is scoped to the current HTTP request or HTTP Session (both normal and global). This is not a specific feature of Spring Portlet MVC itself, but rather of the WebApplicationContext container(s) that Spring Portlet MVC uses.

What are the different types of portlet URLs and their uses?

What is portlet XML?

A portlet project, like a web project, is a J2EE web application. It is similar to a web project in that a web. xml file is maintained for it. The main difference between a portlet project and a web project is that the portlet project has an extra deployment descriptor, portlet. xml file, in the WEB-INF directory.

What are the key configurations we can place in portlet XML file?

Let’s detail each file !

  • 1 1- Portlet.xml.
  • 2 2- Liferay-portlet.xml.
  • 3 3- Liferay-display.xml.
  • 4 4- Liferay-plugin-package.properties.
  • 5 5- Liferay-hook.xml.
  • 6 6- Web.xml.
  • 7 7- Faces-config.xml.

How many portlet life cycle methods given by JSR 168 and what are they?

There are 2 JSR standards for portlet behavior: JSR 168 (Portlet 1.0 specification): Focuses on displaying multiple applications on the same page. It introduces the basic portlet programming model to support the MVC pattern , portlet modes, window states.

How do I create a Spring MVC portlet in Liferay 7?

Liferay is easy

  1. Step 1:-Create liferay Plugin Project.
  2. Step 2:-Create MVC Portlet in project.
  3. Step 3:-Provide Spring jars to classpath.
  4. Step 4:-Provide ViewRendererServlet in web.xml.
  5. Step 5:-Provide entry of Front Controller.
  6. Step 6:-Create Spring Application Context File.
  7. Step 7:-Provide entry of ApplicationContext file.

How do I run Liferay portlet in Eclipse?

What is portlet MVC?

Portlet MVC is a request-driven web MVC framework, designed around a portlet that dispatches requests to controllers and offers other functionality facilitating the development of portlet applications. Spring’s DispatcherPortlet however, does more than just that.

What is portlet URL?

Portlet URLs A portlet URL is an URL that triggers a request for action by the portlet it references.