O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10.2. Modifying the Java source

Portlets of both APIs follow the MVC design patterns and they use two phase processing. Both have an action and a render phase. the method names are different and all the objects are also different.

10.2.1. Package

The package declarations need to be changed from the IBM por tlet API to JSR 168 packages. You can manually change the imports or you can modify the class names and then perform an “Organize Imports” in Rational Application Developer.

Change:

import org.apache.jetspeed.portlet.*;
import org.apache.jetspeed.portlet.event.*;

to:

import javax.portlet.*;

For JSR 168 portlets, you do not have to implement and action listener. There is no equivalent package for org.apache.jetspeed.portlet.event. If you are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required