[Seaside] Difference WAStaticHtmlCanvas >< WAHtmlCanvas
philippe.marschall at gmail.com
Wed Mar 12 05:57:30 UTC 2008
2008/3/12, Ramon Leon <ramon.leon at allresnet.com>:
> > Today I had a look at The WACanvas hierarchy, but I do not
> > understand the difference between WAStaticHtmlCanvas and WAHtmlCanvas.
> > Cheers,
> > Claus
> Look closer, WAHtmlCanvas is an abstract class, #document must be overridden
> by subclasses. They are mostly the same thing, WAStaticHtmlCanvas is just a
> concrete implementation for it. If WAStaticHtmlCanvas didn't exist and you
> used WAHtmlCanvas directly, you'd have the WARenderCanvas inheriting from an
> implementation class. With the current implementation, WAStaticHtmlCanvas
> is free to grow without messing up WARenderCanvas, it's cleaner the way it
> is, one abstract class with two concrete implementations.
> I'm looking at 2.8 btw, it may have changed in 2.9. It does look like
> #textArea needs pushed up, it's the same in both subclasses.
It's still like this, I reported a bug:
More information about the seaside