Headline

Web programming in Language:Smalltalk with Technology:Seaside

Motivation

TBD

Architecture

Illustration

There is a basic OO implemenetation.

Cut for the Employee

cut
	salary := salary / 2

Total for the Employee

total
	^salary

Cut for the Departmnent

cut
	super cut.
	manager cut.
	employees do:[:each | each cut]

Total for the Department

total
	^self employees inject:((manager total) + (super total)) into:[:total :current | total + current total]

The second part contains a layer of web-specific components.

Usage

  • 1. Download Seaside for Pharo (http://www.seaside.st/download/pharo).
  • 2. Open Seaside environment.
  • 3. Open "world" context menu within seaside (right click or double left click). Tools->File Browser. Navigate to the "implementations\seaside" folder in your svn repository.
  • 4. Select 101companies.st and click "install" on a toolbar.
  • 5. Select 101companies-Tests.st and click "install" on a toolbar.
At this point you should be able to see 101comanies and 101companiesTests in the components browser. Next you have to start a web-server. For this go to the "Seasise Control Panel", select WAComancheAdaptor and click "Start" button.

If you don't see any adapters:

  • 1. Open the 'Seaside Control Panel' in the 'Tools' submenu of the 'World' menu
  • 2. Should there be no WAComancheAdaptor add one by right clicking and selecting 'Add adaptor...'
  • 3. Select the WAComancheAdaptor and press 'Start'.
Open http://localhost:8080/101companies in your web-browser.


There are no revisions for this page.

User contributions

    This user never has never made submissions.

    User edits

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.