Beginning Seaside: Image, Password, Halos

Tagged:  •    •    •    •  

(This applies to "GNU Smalltalk version 3.1-git" as of 27Feb10)



    This post documents:
     
  • Creating a new Seaside image to play with,
  • Starting it,
  • Adding a password (authentication) to the default 'config' page, and
  • Configuring a Seaside 'app' to display 'halo's.



    Creating a new Seaside image:

 
  • Change to your preferred working directory, then:

  •       gst-load -i -I ./seaside.im Seaside Seaside-Development Seaside-Examples
    



      Starting your new Seaside image:
       
    • Ensure your are still in your preferred working directory, then:

    •       gst-remote -I ./seaside.im --daemon --start=Seaside
      



      Adding configuration password:
       
    • Connect to http://localhost:8080/seaside
    • Click 'config'
    • In the list just below 'Dispatcher on /seaside', in the row containing 'config', click 'Configure'
    • On the resulting page, below 'Application on /seaside/config', from the 'Add ancestor:' dropdown list select 'WAAuthConfiguration'.
    • Click 'Add'
    • Below 'Configuration', an 'Authentication' area will appear, with 'Login' and 'Password' text boxes: you know what to do. ;)
    • Scroll to the bottom of the page, click 'Close': this will save your changes and re-display the 'config' page.
    • In the list just below 'Dispatcher on /seaside', click 'browse'.
    • The original screen you saw when first connecting to Seaside should be displayed.
    • Click 'config'.
    • You should now be prompted for a login and password -- enter the ones you selected.
    • This process may be repeated for any resource in the 'config' screen.



      Configuring a Seaside 'app' to display 'halo's.
       
    • Connect to http://localhost:8080/seaside
    • Click 'config'
    • In the list just below 'Dispatcher on /seaside', select the resource/app you like to configure halo display for.
    • Note: Apparently, only resources identified as 'Application' can be configured to dispaly halos. (Makes sense).
    • On the resulting page, below 'Configuration', in the 'General' section, at the end of the 'Decoration Classes' row, click 'override'.
    • From the dropdown list that appears, select 'Seaside.WAToolDecoration', and click 'Add'.
    • Now, scroll to the bottom of the page, and click 'Close'.
    • Next time you navigate normally (i.e., not via the config screen) to that resource, halos will be available.

    User login