Previous | Next
WireHose Developers Guide

Adding navigation

As a final step in the development of Hello World, we'll clean up the wrapper a bit and add some navigation.

  1. Open Wrapper.wo in WebObjects Builder
  2. Add a table, with 1 row and 2 columns.
  3. Select the WHLoginBox, and cut and paste it into the left cell of the table. Set the width of the cell to 25 percent.
  4. Remove the WOConditional which used to wrap the login box.
  5. Cut and paste the WHSearchBox and WHAreaWrapper into the right cell. Set the cell's width to 75 percent.
  6. Select the entire left cell by clicking on the <TD> in the path view.

  7. Add a WOConditional to wrap the entire cell (not just its contents), and set its condition to helper.user.isGuest
  8. At the top of the page, add a WOActiveImage. Set its actionClass to "MyHomePage", set its framework to "WireHoseLayoutSupport", and its filename to "wirehose_small_white.gif". Add a binding named border and set it to 0.
  9. To the right of the image, type Welcome, add a WOString with its value set to helper.user.login and type an exclamation point and (Logout).
  10. Wrap the (Logout) text in a WOConditional. Set its condition to helper.user.isGuest and its negate to true.
  11. Select the word Logout and add a WOHyperlink with its actionClass set to "Logout".

  12. Reload the page and explore Hello World.


Previous | Next