Hi Ryan,

Thanks. This is very helpful albeit a little challenging!

Regarding "Essentially you just want to call super and get the existing
Multibinder and then override the binding for RenderingGadgetRewriter with
your own implementation that extends this class.  Does anyone know how to do
that?"...

If anyone can shed some light on the best method of achieving this it would
be appreciated.

Kind regards,

Darren


-----Original Message-----
From: Ryan Baxter [mailto:rbaxte...@gmail.com] 
Sent: 16 October 2013 14:14
To: us...@shindig.apache.org; Darren Bond
Cc: dev@shindig.apache.org
Subject: Re: Rendered Gadget Display Scrollbars unlike iGoogle

The DefaultGuice module installs the set of gadget rewrites in the
RewriteModule.  The RewriteModule adds a binding for
RenderingGadgetRewriter.  RenderingGadgetRewriter contains the default
CSS that is causing you some troubles.  What you probably want to do
is extend RenderingGadgetRewriter and override injectDefaultScrolling.
 To inject / override your the existing RenderingGadgetRewriter I
believe you are going to have to extend RewriteModule and override
configureGadgetRewriters.  Although I am not sure if that is the best
way because you essentially need to copy and change some code.
Usually Guice allows you to override different types of modules, but I
am not sure how to do that with a Multibinder.  Essentially you just
want to call super and get the existing Multibinder and then override
the binding for RenderingGadgetRewriter with your own implementation
that extends this class.  Does anyone know how to do that?

Finally you will have to override the DefaultGuiceModule with your
own.  You can do this in your own Guice module by calling
install(Modules.override(new
DefaultGuiceModule()).with(List<AbstractModule>); in the configure
method of the module.

In the List you would add a new instance of your class which overrides
RewriteModule.

On Wed, Oct 16, 2013 at 2:20 AM, Darren Bond <db...@globalcad.com> wrote:
>
>
> Hi Ryan,
>
> Thanks. Can you provide any more details about how we can prepare a
> GadgetRewriter to achieve this?
>
> Kind regards,
>
> Darren
>
> From Ryan Baxter
> Subject Re: Rendered Gadget Display Scrollbars unlike iGoogle
> Date Wed, 09 Oct 2013 01:02:15 GMT
> Dan knows best, he made that change ;)
>
> If you want to change this behavior should be able to inject a
> GadgetRewriter similar to the GadgetRenderingRewriter that is adding
> the styles today.
>
>


Reply via email to