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

Erin Noe-Payne commented on RAVE-971:
-------------------------------------

Ok the issue you're going to have then is that singleton: true / false does not 
do anything anymore.

When you register the view via a call to rave.registerView(name, definition) 
that definition can either be a static object or a constructor. If it is a 
static object (as our current popups are) then it is going to be treated as a 
singleton. If it is a constructor function then you have an instantiated view 
object that can create multiple instances - that is what you want. 

This is documented, albeit probably not very well, in the jsdocs I wrote here 
http://wiki.apache.org/rave/JSAPI.

You can see an example of the static object popups at rave_ui.js line 873.

You can see an example of a constructed view at rave_ui.js lines 565-717, where 
we build the widget chrome for the portal view.

                
> Layered Popups no longer close properly
> ---------------------------------------
>
>                 Key: RAVE-971
>                 URL: https://issues.apache.org/jira/browse/RAVE-971
>             Project: Rave
>          Issue Type: Bug
>          Components: rave-portal
>    Affects Versions: 0.21.1
>            Reporter: Chris Geer
>         Attachments: Demo_Showing_layered_popups.patch
>
>
> In previous versions of Rave we were able to open multiple pop-ups at the 
> same time and then close them properly. In this version of Rave there seems 
> to be a problem when you open multiple popups using the same template. When 
> you test using the attached patch you'll see that you can open multiple 
> popups but at least one of them will destroy the gadget content but not close 
> the popup.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to