Action Processing in a JSR168 Portlet: WindowStates Tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,493
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by 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

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more