The following table shows general steps for developing a portlet project.

Create portlet project

|
- From the main menu, choose File > New
Project.
- In the New Project wizard, select Web from the Categories list and select
JSR-168 JSF Portlet Project from the Projects list.
- Step through the wizard to specify the project name, location in which to
save the project, and set values for the portlet deployment descriptor.
|
|
|

Add components to the View mode page

|
- Drag components from the Palette to the
Visual Designer.
- Note: You cannot use the FileUpload component in a portlet project.
- Using the Properties window, set the component properties.
|
|
|

Add new View mode pages

|
- In the Projects window, right-click
portlet-project-name > Web Pages and choose New > Portlet
Page.
- Step through the New Portlet Page wizard.
|
|
|

(Optional)
Add Edit mode pages

|
- In the Projects window, right-click
portlet-project-name > Web Pages and
choose New > Portlet Page.
- Set the new page as the initial edit page or navigate to it from an
existing edit page.
- Build and run the portlet project. Click the Edit button to view the page.
|
|
|

(Optional)
Add Help mode pages

|
- In the Projects window, right-click
portlet-project-name > Web Pages and then
choose New > Portlet Page.
- Set the new page as the initial help page or navigate to it from an
existing help page.
- Build and run the portlet project. Click the Help button to view the page.
|
|
|

(Optional)
Connect to a data source column, web service method, or Enterprise JavaBean method

|
-
Click one of the following links to find out how to bind each type of
data to a specific type of component:
|
|
|

Connect multiple pages

|
- In the Visual Designer, right-click and choose Page Navigation.
- In the Navigation Editor, click the source page to display its components.
- In the source page, click the component that triggers the navigation and
drag the connector to the destination page.
- Note: You cannot set the URL property of Hyperlink and Image Hyperlink components to specify navigation. Use the Navigation Editor instead.
|
|
|

Deploy and debug application

|
- Choose Run > Run Main Project to save, build, and
run the application.
- If you need to debug the application, choose Run > Debug Main Project.
|