Uploaded by tutorials168portlets on Jul 14, 2008
You can find the original, high resolution video tutorial at:
http://www.scja.com/jsr168/index.jsp
You can also find links to purchase my JSR168 Portlet Programming Book. :)
Action Processing in a JSR-168 Portlet
Strictly speaking, the various do methods of a portlet should only be responsible for generating the markup that needs to be sent back to the client. Since portlet mode methods, such as doView, doEdit, doConfigure and doHelp, are really only intended for generating the markup that gets sent back to the client, those methods are said to be part of the portlet?s rendering phase, and as such, these methods are passed a RenderRequest and a RenderResponse object.
Two Phase Portlet Processing
Tasks such as state management, form handling and PortletSession management should not take place during the portlet rendering phase. In fact, certain tasks, such as the manipulation the PortletPreferences object associated with the doEdit mode, or forcing a portlet to display itself in a maximized state, simply can?t be performed during the portlet rendering phase. Such tasks must be performed before a portlet is asked to render itself, during an important stage known as the event processing or action processing phase. The event processing phase is associated with a special method called processAction.
This portorial examines how to take advantage of the action processing phase of a portlet.
Please support our site, link to us, buy some books, and remember: Happy Java!
Download the Code!!! (Scroll down and view the code)
You can find the link to download the Java source portlet code at:
http://www.scja.com/jsr168/index.jsp
StateShiftingAction.war
The war file was created using IRAD 6, but it's a JSR-168 compliant portlet application, so feel free to deploy it anywhere.
For my Hibernate & JPA tutorials, Sun Certification Mock Exams, WebSphere tutorials, and downloadable sample portlets, just head over to:
http://www.thebookonhibernate.com
Category:
Tags:
- JSR168
- tutorial
- WebSphere
- Pluto
- JetSpeed
- BEA
- Oracle
- Sun
- processAction
- doEdit
- doConfigure
- doView
- WindowState
- PortletURL
License:
Standard YouTube License
-
1 likes, 1 dislikes
6:20
Portlet Encode NameSpace: How to Encode a Portal NameSpaceby tutorials168portlets1,184 views
3:03
05. Making forms and adding event handlersby rohitbrai2,798 views
5:40
Part2: How to forward to a JSP from a Portlet doView Methodby tutorials168portlets8,493 views
8:26
Action Processing Portlet: IRAD & RSA & WebSphere Portal WPSby tutorials168portlets818 views
3:11
Portlet Application Export w Rational Application Dev IRADby tutorials168portlets1,339 views
6:23
Developing JSR168 Portlet Applications w IRAD for WebSphereby tutorials168portlets1,551 views
13:51
Create a basic Spring 3 MVC Portlet for Websphere Portal - Part 3by seannewby1,369 views
4:32
How to build a SQL for Oracle databaseby sqldeveloper10,604 views
9:19
WebLogic Portal 10.2 - Introductionby jlannin16,267 views
7:33
Demo of the new IBM Lotus Web Content Management JSR286 portletby TheresaLSmit4,003 views
8:20
Jasig Simple Content Portletby uportal821 views
6:23
Tutorial preparación entorno de Portlets para Liferay Parte 1by manuellopezmn2,054 views
3:24
Liferay 101 - Introduction to Liferay Portlet Controls Part II by OmegaBit.comby StavieThePortalGuy3,230 views
6:12
Tutorial preparación entorno de Portlets para Liferay Parte 2by manuellopezmn1,279 views
1:49
Oracle University Overviewby oracledesigner1,502 views
9:14
Oracle BPEL - Hello World Exampleby ericsheetz38,457 views
9:18
Configurando o WebSphere Portlet Factoryby alexbcbr2,493 views
2:33
Websphere Portlet Factory Wiki Interviewby LotusIDC1,400 views
6:36
What is Oracle? A Video Tutorialby harvey007y101,933 views
3:52
Simple Demo showing Portlet communication with a Formby quasifu650 views
- Loading more suggestions...
Link to this comment:
All Comments (0)