description method cached?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

description method cached?

Joel Turnbull
Doing a seaside app using magritte, within pier, within the glass appliance

I created a subclass of MATextInputComponent to do some specific validation, call it FooInputComponent,

I changed the old description method to send componentClass: like this

descriptionFoo
    ^MAStringDescription new
    componentClass: FooInputComponent;
    selectorAccessor: #foo;
    label: 'Foo';
    priority: 40;
    yourself

However, the change doesn't seem to apply, the container still gets a MATextInputComponent. I placed a halt in descriptionFoo and it never triggers.

Is this a caching issue that I can reset?

Thanks
Joel
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: description method cached?

Joel Turnbull

Just found the answer on Dale's blog
http://gemstonesoup.wordpress.com/category/magritte/

MADescriptionBuilder default flush

does the trick


On Wed, Sep 16, 2009 at 10:06 AM, Joel Turnbull <[hidden email]> wrote:
Doing a seaside app using magritte, within pier, within the glass appliance

I created a subclass of MATextInputComponent to do some specific validation, call it FooInputComponent,

I changed the old description method to send componentClass: like this

descriptionFoo
    ^MAStringDescription new
    componentClass: FooInputComponent;
    selectorAccessor: #foo;
    label: 'Foo';
    priority: 40;
    yourself

However, the change doesn't seem to apply, the container still gets a MATextInputComponent. I placed a halt in descriptionFoo and it never triggers.

Is this a caching issue that I can reset?

Thanks
Joel


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: description method cached?

Lukas Renggli
> Just found the answer on Dale's blog
> http://gemstonesoup.wordpress.com/category/magritte/
>
> MADescriptionBuilder default flush
>
> does the trick

Yeah, GemStone does not automatically flush the cache when the code changes.

You might want to implement a description builder that does not cache
at all. Caching makes meta-description heavy apps considerably faster,
but it also introduces all kinds of new problems (e.g. when you change
descriptions on the fly).

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki