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 >