[Seaside] Seaside + SVG (beginner)

Gerhard Obermann obi068 at gmail.com
Wed Aug 27 05:58:52 UTC 2008


Hi!

The Render Continuation Class in the config for your app must be set to
SVGAwareRenderContinuation!

br
Gerhard

On Wed, Aug 27, 2008 at 3:21 AM, Herve Darce <squeak at moncase.fr> wrote:

> Hi,
>
> I would like to use SVG in Seaside. I'm testing packages
> SeasideDynamicSVG-Core, SeasideDynamicSVG-Examples, SeasideDynamicSVG-Test.
>
> I built a subclass MySubClass of SVGXClockApplication (package
> SeasideDynamicSVG-Examples) and add a simple method:
>
> MySubClass class>> canBeRoot
> ^ True
>
> I embed  this  as a component  into a web page of Pier. A bug appears with
> the method WARenderCanvas>> svg. This method requires a method
> userAgentAdaptor that does not exist into WARenderinrContext. The method
> userAgentAdaptor is only  into SVGAwareRenderingContext (subclass of
> WARenderinrContext).
>
> WARenderCanvas>> svg
> svg
>   " Allows drawing inlined SVG "
>   | brush svg |
>   self  context *userAgentAdaptor* renderPreambleForInlinedSVGOn: self .
>   brush := SVGRootTag new.
>   self brush: brush.
>   svg := self svgRendererClass
>       context: self context
>       callbacks: self callbacks.
>   brush svgCanvas: svg.
>   svg svgTagsNeedNamespace: false.
>   self context containsInlinedSVG: true.
>   ^ brush
>
> Is it a bug into package SeasideDynamicSVG-Examples? How to fix this
> problem?
>
> I use *VM* http://distfiles.gentoo.org/distfiles/Squeak-3.10-1.src.tar.gzand *images*
> https://gforge.inria.fr/frs/download.php/5550/sq3. 10.2-7179web08.08.1.zip
> and
> http://gforge.inria.fr/frs/download.php/5432/Pharo0.1-10050-2008-07-19.zip
> .
>
> Cheers,
>
> Herve Darce
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080827/62a2d012/attachment.htm


More information about the seaside mailing list