Wednesday, October 28, 2009

STEP 17: Test Liferay Portlet with JSF Navigation

Test

In NetBeans...
  • Click on the triangular green Run Main Project icon below the menu bar.

  • A browser window will automatically open. If the window does not open, go to http://localhost:8080/web/guest/ in your web browesr.

In the web browser...
  • Click on the Login as bruno link in the Current Users portlet.

  • Hover over Welcome Bruno Admin! at the top right.

  • Click Add Application.

  • The Add Application portlet will appear.

  • Click on ICEfaces Portlets in the The Add Application portlet to expand the node.

  • Click Add next to ICEfaces: MyIcePortlet.

  • The ICEfaces: MyIcePortlet will appear.

In the web browser...
  • Click on the View, Edit, and Help buttons.

  • Confirm that clicking on the View button navigates to the View portlet page.

  • Confirm that clicking on the Edit button navigates to the Edit portlet page.

  • Confirm that clicking on the Help button navigates to the Help portlet page.
Note that navigating between the VIEW, EDIT, and HELP pages should actually be handled by the portal container, as was demonstrated in STEP 11.

In the web browser...
  • Confirm that the button navigation is working correctly.

  • Click the Remove (X) icon at the top right of the ICEfaces: MyIcePortlet portlet.

  • Are you sure you want to remove this component? OK

  • Hover over Welcome Bruno Admin! at the top right.

  • Click Sign Out.

In NetBeans...
  • On the Output panel, click the Stop Server (X) icon.

5 comments:

  1. This is the final post in this series. Some folks have already posted suggestions for improvements (thank you), and I will review those and update the steps if I am able to validate that the suggestions work with the simple example I have provided here.

    If you have a question or issue, please fell free to leave a note, and I will try to look into it, or perhaps someone else can post a recommendation to help you. ;)

    Thanks,
    PS5000

    ReplyDelete
  2. PS5000 you are the man!!! life saver!!

    ReplyDelete
  3. Hi,
    Everything works, except the navigation. Button clicks don't change the view to edit etc.
    Gerard Mengerink

    ReplyDelete
  4. Everything works with NetBeans 6.8 and Liferay 6.0.5 and ICEfaces 1.8.2a! Good job!

    Thanks a lot,
    Dean

    ReplyDelete
  5. Hi

    Thank you for the nice tutorial.

    But i'm struggling a bit. Getting the following error.

    10:57:56,123 INFO [PortletHotDeployListener:220] Registering portlets for ICEfacesLiferay001
    10:57:56,144 ERROR [PortletBagFactory:115] java.lang.ClassNotFoundException: com.icesoft.faces.webapp.http.portlet.MainPortlet
    java.lang.ClassNotFoundException: com.icesoft.faces.webapp.http.portlet.MainPortlet

    ReplyDelete