What is portlet api?

What is portlet api?

JSR 168 portlet API JSR 168 is a Java™ specification from the Java Community Process that addresses the requirements of aggregation, personalization, presentation, and security for portlets running in a portal environment.

What is the difference between portlet and servlet?

Servlets can render complete web pages, whereas portlets renders html fragments. These fragments are aggregated by the portal into a complete web page.

How do you make a portlet?

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 JSF portlet?

JSF is supported as a specific portlet type within WebLogic Portal. Portlets implemented with JSF can leverage all of the powerful features of WLP. This chapter provides a developer with a comprehensive guide for building JSF portlets in Oracle WebLogic Portal 10.3. 0.

What is 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 is portlet context?

The PortletContext interface defines a portlet view of the portlet container. The PortletContext also makes resources available to the portlet. Using the context, a portlet can access the portlet log, and obtain URL references to resources. There is one context per “portlet application” per Java Virtual Machine.

What is the life cycle of a portlet?

Liferay Portlet Lifecycle a portlet is fragment on a webpage as web application and is used with portlets on the same webpage. There are 2 JSR standards for portlet behavior: JSR 168 (Portlet 1.0 specification): Focuses on displaying multiple applications on the same page.

How do I add a portlet to Liferay?

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. Select “Project Template Name” as “mvc-portlet” and click on “Next”.
  4. Enter a Package name and click on “Finish”.

In which portlet do we write the code in the Eclipse IDE?

We have the Editor portlet in which we write the code. And the Outline portlet it gives a hierarchy of the project. They can be restored by using the restore button.

What is Liferay used for?

Liferay is an open source enterprise portal which is free and mainly used to enable corporate extranet and intranet. It is a robust web application platform written in Java and offers a host of features useful for the development of portals and websites.

What is portlet in web?

Portlets are reusable web modules that provide access to Web-based content, applications, and other resources. From an application development perspective, portlets are pluggable web modules that are designed to run inside a portlet container of any portal framework.

What is a MVC portlet?

Web applications are often developed following the Model View Controller (MVC) pattern. It’s lightweight, as opposed to many other Java MVC frameworks. There are no special configuration files that need to be kept in sync with your code. It’s a simple extension of GenericPortlet .

What is the difference between portlet and Servlet?

Portlets are managed by a portlet container just like servlet is managed by servlet container. Both static and dynamic content can be generated by Portlets and Servlets. The packaging and deployment are essentially the same, WAR/EARs.

What content types are not supported by portlets?

It does not support other content types. Portlets are not allowed to generate HTML code that contains tags such as body, frame, frameset, head, html, or title. A Portlet unlike a servlet doesn’t have URL attached to it so it cannot be accessed directly.

What is JSR-168 portlet?

Portlets are part of JSR-168 standard that regulates portal containers and components. This is different standard from standards for web containers (and servlets). Though there are definitely strong parallels between these two standards they differ in containers, APIs, life cycle, configuration, deployment, etc.

What is application session in servlet?

Application Session exists in both Servlet and Portlet containers. It is one of the ways of of sharing data (crude Inter-Portlet Communication) from the render phase to the action phase (or any lower phases) in the portlet containers. Both Servlets and Portlets use similar server / VM environments that support it.