In this step you create a Page Flow portlet, add a Personalization Control,
and edit properties on the Control.
The tasks in this step are:
Create an EJB Control Page Flow
Place the Page Flow into a Portlet, Place Portlet in a Portal
Create a New Page Flow
From within the Project tab in your Web application, right-click on the
portlets directory and create a new Page Flow. Name the Page Flow checkuserGroup.
In the Page Flow Wizard, select Page flow from a java control.
Select the GroupManager control. Click Next.
From the list of Potential Actions, select getGroupNamesForUser. Click Create.
The wizard creates an index.jsp page with a link to the getGroupNamesForUser
action that invokes the control.
Place the Page Flow into a Portlet, Place
Portlet in a Portal
With the Portal open in Design View, drag the checkUserGroupController.jpf
into a placeholder in the portal.
The Portlet Wizard presents a prompt offering to create a portlet from
this resource. Click Yes.
The Portlet Details screen appears. Click Finish.
Preview the portlet by navigating to http://<host>:<port>YourWebappp/portal.portal.
Click on the getGroupNamesForUser link, enter a username
and click Submit.
In this example, user weblogic is a member of the groups
Administrators and PortalSystemAdministrators.
Click on the arrow below to go back in the tutorial: