Hi Rogier,
I think this might be all you need.
renderContentOn: html
html render: ( Address new asComponent
addValidatedForm;
yourself )
Hope it works for you :)
Cheers,
J
On 28 May 2015, at 8:40 am, Rogier Schaaf
<rogier.schaaf(a)gmail.com> wrote:
Hi,
I'm trying to get an HTML form working for a model object using Pharo 4 and Seaside
3.
The model is a simple Address class with 3 instance variables: street, postCode and town.
I have added the Magritte description methods like so:
magritteDescriptionPostCode
<magritteDescription>
^ MAStringDescription new
accessor: #postCode;
label: 'Postcode';
priority: 250;
yourself
The form is a subclass of WAComponent. It has the following method:
renderContentOn: html
( Address new asComponent
addValidatedForm: { #save -> 'Save'. #cancel -> 'Cancel' };
yourself ) renderContentOn: html
The form displays in the browser but has no Save / Cancel buttons and the form tags are
missing as well.
What am I missing?
Thanks for your help.
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki