Uploaded image for project: 'Rave'
  1. Rave
  2. RAVE-1082

"Gadget View Type" demo gadget doesn't always have the view set before initialization

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            geerzo Chris Geer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: