Chris Geer created RAVE-1082:
--------------------------------
Summary: "Gadget View Type" demo gadget doesn't always have the
view set before initialization
Key: RAVE-1082
URL: https://issues.apache.org/jira/browse/RAVE-1082
Project: Rave
Issue Type: Bug
Components: rave-opensocial-provider
Reporter: Chris Geer
"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.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)