Sun Java Studio Creator 2 Update 1 – Online Help
 

Working With Portlet Projects

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

Number one
Create portlet project

new project icon

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

Number two
Add components to the View mode page

palette icon

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

Number three
Add new View mode pages

palette icon

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

Number four
(Optional)
Add Edit mode pages

palette icon

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

Number five
(Optional)
Add Help mode pages

palette icon

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

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

data source node icon

Number seven
Connect multiple pages

navigation editor icon

  1. In the Visual Designer, right-click and choose Page Navigation.
     
  2. In the Navigation Editor, click the source page to display its components.
     
  3. 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.

Number eight
Deploy and debug application

run project icon

  1. Choose Run > Run Main Project to save, build, and run the application.
     
  2. If you need to debug the application, choose Run > Debug Main Project.
     
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close