[Seaside] VW version of Magritte/Seaside issue?
Lukas Renggli
renggli at gmail.com
Sat Jul 26 16:28:21 UTC 2008
> Below is the method I'm using to invoke Magritte :
>
> renderContentOn: html
> | result |
> "================================================================================================="
> "Display one of two things -- either the form or a message indicating the
> contact info was updated"
>
> "================================================================================================="
> result := self call: (MSADBUser asComponent addValidatedForm; yourself).
>
> Like I said earlier -- it may be something that I'm doing wrong.. I'm
> hoping it's just a Magritte newbie mistake..
Actually this is a Seaside mistake ;-)
#call: and #answer: should not be invoked while rendering, do that
only within callbacks. If that's not desired you might want to use
WATask.
So change your code to something like this:
renderContentOn: html
html anchor
callback: [ self openEditor ];
with: 'edit'
openEditor
| result |
result := self call: (MSADBUser asComponent addValidatedForm; yourself).
result inspect
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list