Hi everyone,
I sometimes want to render domain objects as read only, and sometimes as
editable entities.
I wrote description methods that allow editing, as per normal.
Then I wrote this class method:
readOnlyDescription
^ self description collect: [:description | description beReadonly].
which seems to work just dandy. I then render this in Seaside like so:
renderContentOn: html
html render: (recipe class readOnlyDescription asComponentOn: recipe)
So: first, Magritte rocks me.
Second, is the above "idiomatic" Magritte? Are there better ways of
doing this?
frank
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki