[ 
http://jira.amdatu.org/jira/browse/AMDATU-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10532#comment-10532
 ] 

Ivo Ladage - van Doorn edited comment on AMDATU-160 at 12/16/10 9:22 AM:
-------------------------------------------------------------------------

It seems to be fixed now.  
In the dashboard.js the function shindig.container.renderGadget was overridden 
by a custom implementation to be able to remove the titlebar, added by this 
method by default. However, with the upgrade to shindig 2 the method contains a 
switch, detecting if a gadget requires the pubsub2 feature. If so, it renders 
the gadget in a OpenAjax Hub iFrame instead of a regular iFrame. This switch 
was not merged to dashboard.js and so this feature was missing.

I now refactored the dashboard.js to just invoke the original 
shindig.container.renderGadget method, the less customization the better. I 
fixed hiding the titlebar in the CSS instead.
If I 'Subscribe' in the subscribe test gadget and 'Publish' in the other, I see 
the message 'event changed X' appear in the subscribe gadget.

      was (Author: ivol):
    It seems to be fixed now.  
In the dashboard.js the function shindig.container.renderGadget was overridden 
by a custom implementation to be able to remove the titlebar, added by this 
method by default. However, with the upgrade to shindig 2 the method contains a 
switch, detecting if a gadget requires the pubsub2 feature. If so, it renders 
the gadget in a OpenAjax Hub iFrame instead of a regular iFrame. This switch 
was not merged to dashboard.js and so this feature was missing.

I now refactored the dashboard.js to just invoke the original 
shindig.container.renderGadget method, the less customization the better. I 
fixed hiding the titlebar in the CSS instead.
  
> While loading a gadget, the pubsub2router (Shindig 2.0) is not initialized
> --------------------------------------------------------------------------
>
>                 Key: AMDATU-160
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-160
>             Project: Amdatu
>          Issue Type: Bug
>          Components: Amdatu OpenSocial
>    Affects Versions: 0.0.6
>            Reporter: Naftali van der Loon
>            Assignee: Ivo Ladage - van Doorn
>            Priority: Critical
>             Fix For: 0.1.0
>
>         Attachments: pubsub2gadgets.zip
>
>
> While loading a gadget, the pubsub2router (Shindig 2.0) is not initialized, 
> therefore a gadget cannot subscribe to the pubsub2router.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to