Grid Initiatives for e-Science virtual communities in Europe and Latin America Riccardo Rotondo Consortium GARR Joint School for Application Porting to Science Gateways Bogotá, Portlet Develop Introduction Beijing, Asia 4,
Outline Portlet Introduction; Porlet Life Cycle; Porlet Method Interface; Action Request Render Request Beijing, Asia 4,
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. Beijing, Asia 4,
Porlet Life Cycle Beijing, Asia 4, End of Services? NOYES
Porltlet Interface Method Class GenericPortlets { init (PortletConfig); processAction (ActionRequest, ActionResponse); render (RenderRequest, RenderResponse); destroy(); doView (Request, Response); doEdit (Reuqest, Response); doHelp (Request, Response); } Beijing, Asia 4,
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. Beijing, Asia 4,
doEdit() Action Request Beijing, Asia 4, Action Request processAction() Render Request view.jsp doView() edit.jsp Action Request processAction() Render Request edit.jsp view.jsp
Render Request Beijing, Asia 4, Render Request view.jsp doView() view2.jsp