Download presentation
Presentation is loading. Please wait.
Published byShanon Boyd Modified over 8 years ago
1
The EPIKH Project Portlet Develop Introduction Riccardo Rotondo (riccardo.rotondo@garr.it)riccardo.rotondo@garr.it Consortium GARR Tutorial per l’integrazione di applicazioni in Science Gateways Roma, 24.01.2012 Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 1
2
Outline Portlet Introduction; Porlet Life Cycle; Porlet Method Interface; Action Request Render Request Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 2
3
What is Porltet ? Defined in the Java Specification Request (JSR 168/286) A porlet is a web component able to set a frame portion of a web page. Differently from Servlet it needs a Porltlet Container to allow the user to interact with it. Standard Porltet can be deployed in any Porlet Container in case they will use standard libray. Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 3
4
Porlet Life Cycle 4 End of Services? NOYES Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo
5
Porltlet Interface Method Class GenericPortlets { init (PortletConfig); processAction (ActionRequest, ActionResponse); render (RenderRequest, RenderResponse); destroy(); doView (Request, Response); doEdit (Reuqest, Response); doHelp (Request, Response); } Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 5
6
Portlet Mode A porltet works in three different states. View Mode: generate a markup ( a portion of a web page); Edit Mode: allow portlet customisation and setting preferences. Help Mode: explains portlet functionalities. Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 6
7
doEdit() Action Request Action Request processAction() Render Request view.jsp doView() edit.jsp Action Request processAction() Render Request edit.jsp view.jsp Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 7
8
Render Request Render Request view.jsp doView() view2.jsp Tutorial per l'integrazione di applicazioni in Science Gateways, Roma, 23.01.2012 Riccardo Rotondo 8
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.