Sun Java Studio Creator 2 Update 1 – Online Help
 

Portlet Project Tasks: Quick Reference

See Also

This topic describes common tasks that you can perform with portlets. For more detailed information, click the links in the right column.

To perform this task Follow these steps
Create a help page
  1. In the Projects window, right-click portlet-project-name > Web Pages and choose New > Portlet Page.
     
  2. Type the name of the new page and click OK.
     
  3. Set the new page as the initial Help mode page by right-clicking the page and choosing Set as Initial > Help Mode Page. You can also navigate to it from an existing help page.
     
  4. Build and run the portlet project. Click the Help button to view the page.
     
Create a portlet project
  1. Choose File > New Project.
     
  2. In the New Project wizard, select Web from the Categories list and JSR-168 JSF Portlet Project from the Projects list.
     
  3. Step through the wizard.
     
Create a view page
  1. In the Projects window, right-click portlet-project-name > Web Pages and choose New > Portlet Page.
     
  2. Type the name of the new page and click OK.
     
  3. Set up navigation to that new page from another View mode page.
     
Create an edit page
  1. In the Projects window, right-click portlet-project-name > Web Pages and choose New > Portlet Page.
     
  2. Type the name of the new page and click OK.
     
  3. Set the new page as the initial Edit mode page by right-clicking the page and choosing Set as Initial > Edit Mode Page. You can also navigate to it from an existing edit page.
     
  4. Build and run the portlet project. Click the Edit button to view the page.
     
Edit portlet deployment descriptor
Set the initial page
  1. In the Projects window, open project-name > Web Pages.
     
  2. Right-click the page to use as the initial page and choose Set As Initial > mode-name Mode Page.
     
Deploy the portlet
See Also
About Portlet Projects
About the Projects and Files Windows
Working With Portlet Projects
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close