[Bese-devel] render-on

Marco Baringer mb at bese.it
Wed Nov 3 18:27:00 UTC 2004


The situation:

(render-on :around standard-component) setsup a bunch of restarts and
creates the inspector link which i'd like to keep. (render-on :around
window-component) should generate the <html><head>...</head><body>
_before_ the "lower" render-on (the one defined on a subclass of
window-component) and then generate </body></html> _after_ the
"lower" method has returned. (render-on :around widget-component)
must do something very similar with a <div> tag.

The problem:

:around methods are called most specific first. this means that the
:around method defined on widget-component would be called before the
:raound method on standard-component, which isn't what i want. and
should a developer define your own :around method i'd (and they) would
want the restarts active even during the around methods.

The solution:

Use define-method-combination to create a method-combination where
:around methods are called most-specific-last and not
most-specific-first.

The solution's problem:

If anyone already has :around methods on render-on (i don't) there's a
reason they've used them and they work as expected under the current
setup. does anyone have a reason as to why i shouldn't make this
change?

-- 
-Marco
Ring the bells that still can ring.
Forget your perfect offering.
There is a crack in everything.
That's how the light gets in.
     -Leonard Cohen




More information about the bese-devel mailing list