![]() |
![]() |
Each page within a portal can contains a set of nested pages, or portlets—user-specific resources on a portal page. Portlets provide access to specific applications or services, giving users access to multiple sources of information, business processes, and applications in a single place.
WebLogic Workshop makes it easy to create a portlet: click the target folder and choose File —> New —> Portlet. The Portlet Wizard steps you through the process of creating an initial portlet and opens it in the Portlet Designer.
The Portlet Designer is a graphic tool that enables you to design portlets such as the Employee portlet shown in the following figure. The Portlet Designer stores the portlet as an XML file.
The following table describes the portlet design tools shown in the previous figure.
Create, view, and edit portlet files in your portal application projects. The names of portlet files end in .portlet. The Portlet Designer stores the portlet as an XML file. You can view the portlet file in XML format within WebLogic Workshop by right-clicking the portlet file and selecting Open as XML from the drop-down menu when the Open as XML portal application property is enabled. |
||
Add one of the following controls to the portlet:
|
||
Set properties for the portlet component that is currently selected. For example, you can set the Content URI property to identify the page flow or JSP that defines the initial content of the portlet. You can select a portlet component by clicking on it in the Design View canvas or by selecting its name in the Document Structure window (described below). |
||
View the components of the portlet interface in a hierarchical structure (see Figure: Document Structure Window for a Portlet). You can select a portlet component in the Document Structure window by clicking on it. The portal component is selected in Design View and you can edit its properties in the Property Editor window. |
The following figure shows the Document Structure window for a portlet.
Document Structure Window for a Portlet
As shown in the Document Structure window, the following components make up the hierarchical structure of the sample Employee portlet interface:
To learn more about designing portlets:
![]() |
![]() |