Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
"Gadget View Type" (bottom right default gadget) - this gadget should display several buttons and text boxes but instead shows "Default View". This only happens when the gadget can't detect what view it's in. I did have this show up once correctly so I"m guessing it's a timing issue somewhere but I'm not sure where.
If I set breakpoints in page.jsp I can see that the onInitHandler is being fired before the defaultView is set to "home". Down the line in rave_opensocial#renderWidget, the render params get populated with the result of stateManager.getDefaultView(), which returns 'default' and not 'home'. I can also see this if I look at the iframe url which has view=default on it. A Rave fix for this issue could be to move the call to setDefaultView('home') in page.jsp into the onInitHandler callback instead of outside it.