Hi all,
I've been having trouble with the Pier Adaptive Forms example in the thesis titled "Magritte — Meta-Described Web Application Development".
In particular, I've typed all the necessary code in my browser, prefixing "PR" and "MA" where I think should be appropriate. I can add the Form, but the "Edit Form" command that I created will not work. I get the following output when clicking on the "Edit Form" link:
(In HTML format)
- PREditFormCommand(Object)>>doesNotUnderstand: #label
self | a PREditFormCommand |
temps |
aMessage | label |
inst vars |
properties | nil |
context | a PRContext stucture: 'Test Form' command: 'Edit Form' |
answer | nil |
metamodel | a MAContainer label: '' comment: nil |
- MASelectorAccessor>>read:
self | (MASelectorAccessor read: #label write: #label:) |
temps |
aModel | a PREditFormCommand |
inst vars |
properties | nil |
readSelector | #label |
writeSelector | #label: |
- PREditFormCommand(Object)>>readUsing:
self | a PREditFormCommand |
temps |
aDescription | a MAStringDescription label: 'Label' comment: nil |
inst vars |
properties | nil |
context | a PRContext stucture: 'Test Form' command: 'Edit Form' |
answer | nil |
metamodel | a MAContainer label: '' comment: nil |
- [] in MACheckedMemento(MAMemento)>>pullRaw {[:each | result at: each put: (self model readUsing:
each)]}
self | a MACheckedMemento model: a PREditFormCommand |
temps |
result | a Dictionary(a MAStringDescription label: 'Kind' comment: nil->'Edit Form' ) |
each | a MAStringDescription label: 'Label' comment: nil |
inst vars |
properties | nil |
model | a PREditFormCommand |
description | a MAPriorityContainer label: 'Container' comment: nil |
cache | nil |
original | nil |
(snipped)
Also, there seems to be a missing closing parenthesis on page 41 in the Form>>description method definition.
The Pier setup is obtained by installing the Pier Unix Security 1.0.3-alpha from SqueakMap Package Loader. In this version of Pier, clicking on the "Environment" command link will also crash Pier, is this expected?
Note: I am new to Smalltalk and Squeak.
Thanks,
-Bill