rave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Wilson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RAVE-102) Implement Rave inter-gadget messaging with OpenSocial
Date Sat, 14 Apr 2012 16:53:16 GMT

    [ https://issues.apache.org/jira/browse/RAVE-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254148#comment-13254148
] 

Scott Wilson commented on RAVE-102:
-----------------------------------

OK, I had a go at implementing for rave-wookie, with:

        var ooacontainer = new OpenAjax.hub.IframeContainer(rave.getManagedHub() , widget.regionWidgetId,
        {
          Container: {
            onSecurityAlert: onClientSecurityAlert,
            onConnect:       onClientConnect,
            onDisconnect:    onClientDisconnect
          },
          IframeContainer: {
            parent:      widgetBodyElement, 
            iframeAttrs: { style: { width:"100%"}},
            uri: widget.widgetUrl
          }
        }
        );
        
... and a test widget including OpenAjaxManagedHub-all.js and using the example client code
off the OA site.

However when I open in Rave I get:

TypeError: 'undefined' is not a function (evaluating 'gadgetId.charAt(0)') container:pubsub-2.js:11002
TypeError: 'undefined' is not a function (evaluating 'window[params.IframeContainer.onGadgetLoad]()')
container:pubsub-2.js:4430
TypeError: 'undefined' is not a function (evaluating 'targetId.charAt(0)') container:pubsub-2.js:4430

I suspect this may be because rave.getManagedHub() has some deep dependencies on the rest
of the shindig stack, especially its RPC services, in which case it can't be generalised to
other widget types :(

Or maybe I just got the parameters wrong?
                
> Implement Rave inter-gadget messaging with OpenSocial
> -----------------------------------------------------
>
>                 Key: RAVE-102
>                 URL: https://issues.apache.org/jira/browse/RAVE-102
>             Project: Rave
>          Issue Type: Technical task
>    Affects Versions: 0.1-INCUBATING
>            Reporter: Zhenhua (Gerald) Guo
>            Assignee: Matt Franklin
>
> Make the RAVE portal support inter-gadget communications among OpenSocial gadgets (do
NOT include W3C widgets).  
> The goal is to support OpenSocial pub/sub APIs (http://opensocial-resources.googlecode.com/svn/spec/2.0/Core-Gadget.xml#interGadgetEventing).


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message