Nspring portlet tutorial pdf

Its easy why restrict your portlet to only run on liferay. Jun 19, 2012 liferay portlet tutorials pdf products and names mentioned are the property of their respective owners. Hi liferay savvy visitors i am going to write tutorial about liferay technology. Also, lifecycle methods belonging to a single portlet need not be in the same class.

This section describes how to create a simple jsr168 portlet in eclipse and register it with the aqualogic interaction portal. This article is taken from the book portlets in action from manning publications. In liferay 7 every portlet is osgi bundle which is easily maintained by gogo shell commands. To undeploy a portlet,choose the portlet under driver in runtime tab,right click and choose undeploy portlet examples. Edit on github back to plugins struts 2 portlet tutorial creating a simple bookmark portlet. You must be licensed for workpapers cs and have the appropriate security privileges set up to activate this service. There are different types of portlet containers such as apache pluto, oracle web center and liferay. You may have seen how easy it is to write a portlet. A portlet could be the cafeteria menu or a speedometer. This module is also called spring mvcportlet module. You may ask, why use spring mvc and not extend one of the liferay implementations e. This article is taken from the book portlets in action. An introduction to portlet programming this portlet programming tutorial is an introduction to developing jsr286 applications that can be deployed to any standardsbased portal server.

Liferay spring portlet tutorial meera prince liferay have provided flexibility to develop portlet with different web framework such as jsf, spring, struts and vaadin. In this chapter, i will demonstrate how to use spring web mvc framework. Which portlet class to be used for liferay jsf portlets these portlets are using sun portlet api. Spring portlet mvc framework provides easy integration with popular viewrendering technologies such as jstl, apache tiles, and apache velocity.

Spring portlet development, we can use all liferay apis so that we can develop portlets very easy and if the developers have best understanding about spring then its good choice to develop spring portlets in liferay. You saw how portlet factory automates the creation of portlet artifacts such as jsp pages, xml schema, java code, and so on. It would be good if give one more example of jsf portlet using rad by creating portlet project. Spring framework is an open source java platform that provides comprehensive infrastructure support for developing robust java applications very easily and very rapidly. Liferay portal enterprise builds upon the portlet api jsr 168 to provide users with a rich set of portlets. To develope portlets we completely use sun portlet api. This tutorial is intended to provide you a full detailed explanation for getting liferay portal up and running and deploy the same employee registration sample that we had developed in earlier tutorial. Jsp and portlet api taglib apache software foundation. Liferay tutorial liferay portal portlet tutorial journaldev.

Jsr168 portlet specification defined on the java community process jcp website. Struts 2 portlet tutorial apache struts 2 wiki apache. When present, click the maximize button in the title bar of the portlet to maximize it within the dashboard. A stepbystep jenkins tutorial for beginners undo bad. This simplified hello world portlet example allows a user to set the message that is displayed within a portlet. For information about portlets that are available in the workpapers dashboard, see workpapers portlets, overview. Building jsf applications with spring and hibernate javaone 2008. Create a jsp page for the view mode of the portlet. Liferay with spring make us better way of using spring capabilities and liferay capabilities. The tutorial should have given you a basic understanding of portlet development with struts 2, and that it is not very different from using struts 2 in a regular web application. If it is empty, then we add the validation error that contactid is a required field. The portlet code sends a portlet setting to a set preferences page, which stores it in the ali database and redirects to the portal, refreshing the portlet display. Now that you have successfully created your first portlet, lets create another one. This tutorial has been written based on spring framework.

Simple portlet welcomes a user based on the user preferences set in edit page. Session portlet simple portlet is modified to store the preferences in session variable. Developing portlets using eclipse and websphere portlet factory. Note that this tutorial assumes that youre familiar with basic struts 2 web application programming. In addition to supporting conventional servletbased web development, spring also supports jsr286 portlet development. Building a java desktop database application netbeans 6. Here is spring portlet docs, its showing how we configure portlet using portlet. My jsf portlet tutorial portals and portlets forum at coderanch. Portlet component can be dragged over the page and swapped with other portlets. This websphere portal and spring tutorial demonstrates how to create simple portlet filters using the lightweight spring framework. Currently i am facing problems with wiring and couldnt understand concept behind it how to pass more than one parameter using wiring. You may have been introduced to the basics of the portlet api and used features from portlet 1. It is possible to create other types of portlets though i. After we configure a wellstructred maven layout for our liferay project, we will create a simple spring mvc portlet.

There are three main types of portlets typically created in dotcms, the velocity, struts or jsp portlet. Note that you can mix jsp and a java class for the implementation of your java class. Spring framework i about the tutorial spring framework is an open source java platform that provides comprehensive infrastructure support for developing robust java applications very easily and very rapidly. Spring framework was initially written by rod johnson and was first released under the apache 2. Its part of a threepart series that creates a portlet example using the spring 3. Good portal tutorials from the scratch portals and portlets. Portlet filters and spring tutorial the server side. Spring portlet is a framework released from spring community for easier development of java portlets. Hello world portlet rendered with jsp for websphere portal version 4. First take an example of lotus form server portlet, its showing the way how to allow multiple mimetype while configuring the portlet using portlet. This article is a stepbystep tutorial on spring portlet mvc framework.

The spring framework is an application framework and inversion of control container for the java platform. Which portlet class to be used for liferay jsf portlets if we use liferay portlet api instead sun api. The following is the content i proposed to write and please provide feedback and add your ideas through comments. In spring portlet mvc, the controllerhandler class and not the portlet class contains the. In our sample case, we check if contactid is empty. The portlets can be personalized by users, for example, users can change the number of emails they want to view in the portlet, number of cnn headlines news they want to view or set the location from. In addition to supporting conventional servletbased web development, spring also supports jsr168 portlet development. Jun 23, 2010 spring portlet is a framework released from spring community for easier development of java portlets. In this threepart series, the articles describe new features available in the java portlet specification 2. Pdf owner manuals and user guides are not affiliated with the products andor names mentioned in this site. Introduction to spring portlets java programming tutorials. As much as possible, the portlet mvc framework is a mirror image of the web mvc framework, and also uses the same underlying view abstractions and integration technology.

In the presented introduction about apache pluto, weve mainly discussed the most simple portlet application that you may have. The following are examples from the portlets bundled with liferay. Development of a simple portlet with spring mvc isos technology. Developing a spring portlet mvc framework application for. The portlet mvc framework provides a mock testing framework that you can use for testdriven development of your portlet. Dec 12, 2012 this session aims to get to the bottom and basics of portal and portlet technologies. Because websphere portal is the framework, you can think of portlets as the pieces of art we place into the frames created by websphere portal. The portlet you create will implement the view mode and display the message hello, world. Jul 11, 2008 this tutorial shows you how to create a basic jsr 168 portlet.

Notes instead of using the maven 2 jetty plugin to run the tutorial, you can check out the jettyplutolauncher which is included in the test sources. This tutorial shows you how to create a basic jsr 168 portlet. Were now going to take a look at some of the things that portlet 2. We will talk about how portlet technology has grown through various specifications. May 23, 2016 i love the power and simplicity of the spring framework, and given the fact that portal servers like websphere are often seen as being overly complicated and cumbersome, integrating a simple framework like spring into the often intimidating portlet api can both simplify and accelerate development. This session aims to get to the bottom and basics of portal and portlet technologies. In this article, we will learn about programming portlets using spring portlets framework which is a layer built on top of java portlet specification jsr 168. This site consists of a compilation of public information available on the internet. A read is counted each time someone views a publication summary such as the title, abstract, and list of authors, clicks on a figure, or views or downloads the fulltext.

Now forget ant liferay 7 use a build tool gradle for creating portlets or we can say bundles. In this tutorial, you learned how to create a portlet, using websphere portlet factory, that runs on websphere portal and accesses a database. This article also covers some details about java portlet specification. Because the spring portlet mvc framework takes care of dispatching the request and passing the. Part 1 provides an overview of the java portlet specifications and explains in detail one of the main features. Building portals with the java portlet api jeff linwood, dave minter.

760 814 1630 898 314 1268 275 616 1593 345 160 1167 416 1257 1640 1120 787 1204 550 458 884 625 1023 1201 202 466 976 765 1331 1143 25 309 1022 1389 854 708 896 351