Just Play It Grand...


First simple Seaside example: A Guest List.

Posted in Seaside, Squeak by eric on the August 2nd, 2007

I was reading the Seaside mailing list archives and came across this great post by Avi Bryant explaining to Todd Blanchard how to navigate to a new page. Avi posted back displaying how navigation can be accomplished using call/answer. He used a Guest List as his example. The mailing list entry can be found here.

The code in the list was old, so I decided this would be a good first example to convert to a newer state. You can grab the code and try it out by…

Get the squeak-web image.
Uncompress the file.
Open the squeak-web image by double clicking on it.
You can close any windows which are open. (ie. Script Manager and Preference Browser)
Left click to on the background image to get the World Menu.
Select ‘open…’
Open… menu appears.
Select ‘Monticello Browser’
In the Monticello Browser window…
Click +Repository
Select HTTP.
Enter…

MCHttpRepository
location: ‘http://justplayitgrand.com/mc/elhguestlist’
user: ”
password: ”

Click Accept.
Make sure the ‘http://justplayitgrand.com/mc/elhguestlist’ item is selected in the tableview on the right.
Click the Open button.
A Repository window will open.
Select ELHGuestBook in the left tableview and ELHGuestBook-elh.#.mcz in the right tableview (where # denotes a number, ie. 6 but just select the one with the highest number, ie. ELHGuestBook-elh.6.mcz)
Click Load.
Close the repository window.
Close the Monticello Browser window.
Now open up a browser by…
Left click on the background image.
World Menu appears.
Select open…
Select Class Browser or Image Browser.
At the very left are your categories.
Scroll and find ELHGuestBook-Model and ELHGuestBook-Views. (Mostlikely at the very bottom)
We have successfully loaded the code.
If you open up a Workspace by…
Click on the background image.
Select open…
Select Workspace.
In the Workspace type, WAKom startOn:9090.
Highlight the text you just typed above and click the middle mouse button (by default) and select Do it…
[Note: If Do It… does not appear in the menu, try right clicking and then select Do It…]
Now the Web Server has been started.
Open up a web browser and navigate to…
http://localhost:9090/seaside
You will see an item called ‘Guest List’
Click on the ‘Guest List’ item.
Now play with it and look at the code in the Class Browser in Squeak.

Technorati Tags:

3 Responses to 'First simple Seaside example: A Guest List.'

Subscribe to comments with RSS or TrackBack to 'First simple Seaside example: A Guest List.'.


  1. on August 8th, 2007 at 12:24 pm

    […] now assuming you’ve loaded the code and you’ve had a chance to play around with it. Let’s just go over the details […]

  2. sandrar said,

    on September 10th, 2009 at 4:34 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.


  3. on August 24th, 2010 at 1:17 pm

    Sign: zdbrw Hello!!! vaams and 4107ukeznwegmr and 4650 : Sorry, what did you mean?? A??

Leave a Reply