This page contains some Portlet examples for the Bea Portal Server.
Sources
skyrix-bea-portlets.tgz
Prerequisites
Bea WebLogic Portal 7
J2SDK 1.4.1
(required for the XML-RPC client library
a running SKYRiX XML-RPC daemon
Installation
- Download j2sdk1.4.1_01 from http://java.sun.com and install it.
(Needed for the XMLRpcClient)
- Edit set-environment.sh found in your bea installation directory under
directory weblogic700/portal/bin/unix and set JDK_HOME on the
installation path of the installed j2sdk1.4.1_01
- Copy and merge the directory content found under directory portal with
the directory $BEA_HOME/user_projects/"name of your bea domain
server"/beaApps/portalApp/"name of your portal"
- Start the ebcc.sh found in $BEA_HOME/weblogic700/ebcc/bin and open
portalApp-project.eaprj from the directory $BEA_HOME/user_projects/"name
of your bea domain server"/beaApps/portalApp-project
- Click the Presentation tab of the E-Business Control Center and click the
New icon in the Explorer toolbar and select new Portlet.
- Choose "Use the Portlet Editor to create a new portlet with existing
resources .." and ok.
- In the Editor do the following:
- Enter "/portlets/showAppointments/showAppointments.jsp" for the Content
URL
- Enter "/skyrix-images/skyrix_icon.gif" for the Icon URL
- Check Enable Editing and enter "/portlets/showAppointments/edit.jsp"
for the Edit URL
- Check Login required
- Save the portlet by clicking on the save button in the menu
- Enter "showAppointments" as filename and save
- close the editor window
- Repeat the creation of portlets shown in step 5 - 7 with the following
data:
| 1. |
Content URL: /portlets/showJobs/showJobs.jsp
Icon URL: /skyrix-images/skyrix_icon.gif
Edit URL: /portlets/showJobs/edit.jsp
file name: showJobs
|
| 2. |
Content URL: /portlets/newAppointment/newAppointment.jsp
Icon URL: /skyrix-images/skyrix_icon.gif
Edit URL: /portlets/newAppointment/edit.jsp
file name: newAppointment
|
| 3. |
Content URL: /portlets/newJob/newJob.jsp
Icon URL: /skyrix-images/skyrix_icon.gif
Edit URL: /portlets/newJob/edit.jsp
file name: newJob
|
- Now click on the Portal symbol and double click on your portal.
- After opening of the Portal Editor expand General, choose the portlet
tab and add the created portlets to the selected portlets.
- Expand Pages and edit the page which should contain the created
portlets. Add the created portlets to the selected portlets, press ok
and then click on the save button to save.
- Now synchronize with the server by clicking on the synchronize
button.
- Enter the administrator username and password when prompted to
enter.
- Close the E-Business Control Center and start your web browser.
- Go tho url http://"hostname where bea server is
running":"port"/portalAppTools/
- Enter an administrators username and password. Attention, this is not
the same username and password which you have used in the E-Business
Control Center. Normally an administrators username is "administrator"
and the passoword is "password".
- Click the icon to the right of the Portal Management heading.
- On the Portal Management page click on the link under the name of your
portal to edit.
- Click on "Manage Pages and Portlets".
- Click on Edit Portlets by the page where you have added the created
portlets.
- Select the created attributes and choose Edit Attributes.
- Check the Attribut "available" and save by clicking on the Save
button.
- Restart the portal server.
After these steps the SKYRiX portlets are available in the portal.
The url to the SKYRiX XML-RPC daemon and the url to the SKYRiX server can be
changed in the properties file found under $BEA_HOME/user_projects/"name of
your Bea domain server"/beaApps/portalApp/"name of your Bea
portal"/WEB-INF/classes/skyrix/portlets.
Author
Mirko Buhle