I'm playing with common container now, looks easier than shindig-container.

To have common-container working properly, i had to update to shindig , i
did a checkout and installed in my local maven repo, there is a temp repo
when you guys release the snapshot versions of shindig? I do no want to deal
with handling  versions manually.

Thanks.

On Fri, Jan 7, 2011 at 11:10 AM, Xandeco, Maxwell
<[email protected]>wrote:

> I did a update and seems fixed in trunk, sorry.
>
> ________________________________________
> De: Xandeco, Maxwell [[email protected]]
> Enviado: sexta-feira, 7 de janeiro de 2011 10:22
> Para: [email protected]
> Assunto: RES: Where is property height of the gadget?
>
> Hi guys,
>
> Yes i was using the shindig-container, and chaged to common-container now,
> some urls are different, I had to change some maps in my webxml, it's trying
> to get gadget metadata from /api/rpc/cs.
>
> The point is, after some tricks i can not get a simple redering described
> on docs running i got this message:
>
> "The method gadgets.metadata.get is not implemented"
>
> Here is my simple code to try just render the gadget:
>
>
>
> shindig.auth.updateSecurityToken('john.doe:john.doe:appid:cont:url:0:default');
>
> var elem = document.getElementById("root-container");
> var gadget = "http://www.labpixies.com/campaigns/todo/todo.xml";;
> var container = new shindig.container.Container();
> var site = container.newGadgetSite(elem);
> container.navigateGadget(site, gadget, {}, {});
>
> I'm using shindig 2.0, but i tried the demo on 3.0 and got the same erros
> on trying to add a gadget.
>
> Thanks.
> ________________________________________
> De: Michael Hermanto [[email protected]]
> Enviado: quinta-feira, 6 de janeiro de 2011 20:23
> Para: [email protected]
> Assunto: Re: Where is property height of the gadget?
>
> On Thu, Jan 6, 2011 at 10:15 AM, Xandeco, Maxwell
> <[email protected]>wrote:
>
> >
> > Hi,
> >
> > When javascript container is redering the gadget in the client, it checks
> > if has the height property, eg. on the method getMainContent in
> > shindig.IfrGadget, this method check if has the height and width property
> to
> > set the gadget/iframe size, but this property is always "undefined", my
> > gadgets do not get the size defined on ModulePrefs.
> >
> > How I can get this size and use to set iframe size?
> >
>
> Sounds like you're still using the old container code under
> features/.../shindig.container. The new one is under features/.../container
> (or features/.../shindig.container-1.0), and documented
> here<https://cwiki.apache.org/confluence/display/SHINDIG/Common+Container
> >.
> Try using the new one, since it (as Ryan pointed out), supports iframe
> resizing. The old container JS (and its endpoint /gadgets/metadata) are not
> modified when we introduced the one.
>

Reply via email to