[Seaside] Load Magritte for VisualWorks and Magritte - Tutorial

Lukas Renggli renggli at gmail.com
Fri Jan 19 21:32:05 UTC 2007


> But i have test to define the options relative to the title #( 'Mr.' 'Mrs.'
> .....) from the database with a specific methods
>     ...... options: self returnOptions .
>
> When the returnOptions method change the array answer the options see in the
> web page d'ont change.
> The options see is fixed at the last execution of
>      Magritte.MADescriptionBuilder default flush.
>
> What is the best solution to resolve this 'temporary' problem?

This is a common problem. Override #description on the instance side
(by calling super) to get the cached version and modify it on the fly
with your dynamic options. There are some details given on how to do
that on my slides available at:
http://www.lukas-renggli.ch/smalltalk/magritte/tutorial.pdf

HTH,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list