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 |
- In the Projects window, right-click portlet-project-name > Web Pages and choose New > Portlet Page.
- Type the name of the new page and click OK.
- 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.
- Build and run the portlet project. Click the Help button to view the page.
|
| Create a portlet project |
- Choose File > New Project.
- In the New Project wizard, select Web from the Categories list and
JSR-168 JSF Portlet Project from the Projects list.
- Step through the wizard.
|
| Create a view page |
- In the Projects window, right-click portlet-project-name > Web Pages and choose New > Portlet Page.
- Type the name of the new page and click OK.
- Set up navigation to that new page from another View mode page.
|
| Create an edit page |
- In the Projects window, right-click portlet-project-name > Web Pages and choose New > Portlet Page.
- Type the name of the new page and click OK.
- 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.
- Build and run the portlet project. Click the Edit button to view the page.
|
| Edit portlet deployment descriptor |
|
| Set the initial page |
- In the Projects window, open project-name > Web Pages.
- Right-click the page to use as the initial page and choose Set As Initial > mode-name Mode Page.
|
| Deploy the portlet |
|