
Wednesday January 24, 2007
Up until recently, I was still using
vi and Pluto to do my portlet development.
Others had recommended switching and I needed to work with the portlet repository at java.net and I realized it was time to make the switch. The release of the new Java Application Platform SDK really helped. Here is what I did.
- Download Java Application Platform SDK Update 2 with Tools
- Run the installer
- Netbeans is installed with Glassfish (officially named Sun Java System Application Server Platform Edition 9.0) and the new portlet container already deployed.
- Install Maven plugin
- The portlet repository uses maven for building. This plugin integrates maven into Netbeans to make it easy.
- Install Portal Pack plugin
- This plugin allows you to deploy directly to the portlet container from Netbeans.
- Start Glassfish (Runtime tab ->Servers->(right-click) Start
- Follow these configuration steps in Netbeans. However, the steps are backwards. First configure the Glassfish instance, then the portlet container.
- Download portlet repository source in Netbeans
- Open the project
- Netbeans will prompt after the cvs checkout and ask if you want to open the project. Select portlet-repository.
- Build the project
- In Netbeans, Build->Build Main Project
- Maven downloads all the dependency libraries automatically
- Look for the BUILD SUCCESSFUL message in the Output window
- To see the individual portlet projects, right-click on the portlet repository project and choose Open Required Projects
-

- Deploy
- View
Honestly. It's that simple. Then from there you can use
the steps to create a new portlet application and build and test your own portlets in Netbeans.
This is something I've been meaning to do for a long time. The source for the sample from my
paper on AJAX and portlets is now in the
portlet repository at java.net. This portlet is instructional and shows how AJAX (using DOJO) can be used with a JSR-168 portlet.