Hope your vacation went well. I would debug through the navigateTo call to see what is happening. Looks like it should be called from there.
On Mon, Jan 7, 2013 at 7:32 AM, Martin Hoeller <mar...@xss.co.at> wrote: > Hi Ryan! > > Sorry for late reply but I was on vacation... > > I ended up redefining the method > osapi.container.GadgetSite.setModuleId_() in one of my own JavaScrip > files and set the private moduleId_ field always. This works for me, > but skips some code which might have it's value. > > Though, I still feel Shindig's behavior is wrong, it could be that I > am missing something. > > regards, > - martin > > Am Wed, 26 Dec 2012 10:46:14 -0500 schrieb Ryan Baxter > <rbaxte...@apache.org>: > > > Martin did you debug this further? Seems like it should be set when > > GadgetSite.navigateTo is called. > > > > > > On Thu, Dec 13, 2012 at 11:54 AM, Martin Hoeller <mar...@xss.co.at> > > wrote: > > > > > Hi! > > > > > > I have a number of gadgets on a page that I render basically like > > > this: > > > > > > CommonContainer.preloadGadgets(...); > > > var params = {}; > > > params[osapi.container.RenderParam.MODULE_ID] = spec.modId; > > > var gadgetSite = CommonContainer.newGadgetSite(el); > > > var gadgetURL = spec.url; > > > CommonContainer.navigateGadget(gadgetSite, gadgetURL, {}, > > > params); > > > > > > "spec" is an object containing meta-information for a gadget (like > > > URL and module-ID). > > > > > > Rendering works, and the correct moduleId is passed to the server, > > > but when I query the moduleId afterwards via > > > gadgetSite.getModuleId() I always get "0" as the result. > > > > > > What am I missing here? > > > Or what is the recommended way to tell the common container the > > > ModuleId for a gadget? > > > > > > tia, > > > - martin > > > >