[Pharo-project] Loading Seaside into Pharo 1.2 core

Torsten Bergmann astares at gmx.de
Tue Feb 15 10:55:59 CET 2011

Dale wrote:
>I am presently working on Seaside 3.0.4 which will correctly load into 

According to his mail Mike wants to load it into a Pharo1.2-Core 
(maybe for minimal deployment) - not into a Pharo1.2-Developer image.

So the expression 

  (ConfigurationOfSeaside30 project version: '3.0.3') load.

will only work in a Pharo 1.2 (dev image) since it requires 
various tools (like OB) that are only in the dev image
and there seem to be no explicit dependencies defined. 
Otherwise it should load into Core too, should'nt it?

Still this is more or less for a typical "seaside development scenario".

However - for a "deployment scenario on a core image" one has 
to find out the groups required. That depends on what
the seaside application uses.

Think of the following: one wants to use a minimal Pharo
core 1.2 image and just run a simple Seaside webapp on it.

For such a minimal app you need to:

   "Load the config"	
   Gofer new
     squeaksource: 'MetacelloRepository';
     package: 'ConfigurationOfSeaside30';

   "Load the base seaside packages and Comanche as server"	
   ((Smalltalk at: #ConfigurationOfSeaside30) project version: '3.0.3')
        load: #('Base' 'Seaside-Adaptors-Comanche').

You can then start the web server:

   WAKom startOn: 80

but you will not be able to see more than

as Dale already mentioned.
Now implement a simple Seaside component:

   WAComponent subclass: #MyAppFrontPage
    	       instanceVariableNames: ''
	       classVariableNames: ''
	       poolDictionaries: ''
	       category: 'MyApp-Web-UI'

with the following rendering method on the instance side:

   renderContentOn: html
  	html text: 'HelloWorld'

And register it:

   WAAdmin register: MyAppFrontPage asApplicationAt: 'myapp'.

You can browse it at:


If you want to make it the default entry point:

   WADispatcher default defaultName: 'myapp'   

This allows you to access it directly on:


All this is summarized and done in the attached changeset. 
Just drop it into a fresh core 1.2 image or file it in using
the file browser, then see some loading magic and after its 
finished point your browser to


Have fun
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MinimalSeasideAppForPharoCore12.cs
Type: application/octet-stream
Size: 1258 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20110215/bfce05f8/attachment.obj>

More information about the Pharo-project mailing list