resistance is obsolete ™ ;-)
the groupware construction kit

Bea WebLogic Portlet Examples

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
    1. Download j2sdk1.4.1_01 from http://java.sun.com and install it. (Needed for the XMLRpcClient)
    2. 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
    3. 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"
    4. 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
    5. Click the Presentation tab of the E-Business Control Center and click the New icon in the Explorer toolbar and select new Portlet.
    6. Choose "Use the Portlet Editor to create a new portlet with existing resources .." and ok.
    7. 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
    8. 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
    9. Now click on the Portal symbol and double click on your portal.
    10. After opening of the Portal Editor expand General, choose the portlet tab and add the created portlets to the selected portlets.
    11. 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.
    12. Now synchronize with the server by clicking on the synchronize button.
    13. Enter the administrator username and password when prompted to enter.
    14. Close the E-Business Control Center and start your web browser.
    15. Go tho url http://"hostname where bea server is running":"port"/portalAppTools/
    16. 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".
    17. Click the icon to the right of the Portal Management heading.
    18. On the Portal Management page click on the link under the name of your portal to edit.
    19. Click on "Manage Pages and Portlets".
    20. Click on Edit Portlets by the page where you have added the created portlets.
    21. Select the created attributes and choose Edit Attributes.
    22. Check the Attribut "available" and save by clicking on the Save button.
    23. 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
  • We welcome your feedback!
    Trademarks.  
    This site is sponsored by
    SKYRIX Software AG
    ZideOne GmbH
    MDlink