Observer:SelectableChildProvider on tabnavigator trouble when close tab

Hi,
I've got a tabNavigator wired with SelectableChildProvider component which bind my PM's "tabs collection" in order to reflect new tab to be displayed/tab's updates/tab to be closed by updating the "tabs collection" thru the PM.
Each tab owns its Context (created dynamically) in order to be able to dispatch event thrue tabs children targetted (no tabs interraction by catching event comming from other tabs).
Everything seems to work fine : new entry in the arraycollection thru my PM is OK but the trouble comes when I close a tab other than the lastest one :
Imagine I've got
- Tab1 owning a context Ctx1 where there's defined PM1 used by inner children of Tab1
- Tab2 owning a context Ctx2 where there's defined PM2 used by inner children of Tab2
- Tab3 owning a context Ctx3 where there's defined PM3 used by inner children of Tab3
In the MXML where is defined my tabnavigator and my observer I set tabNavigator's property like that tabClose="{model.removeTab(event)}" where model is the PM linked to the component which owns my tabnavigator and Observer.
In this PM I've defined the removeTab event like this :
public function removeTab(event:SuperTabEvent):void {
     event.preventDefault(); //prevent tabnavigator to deal with child to remove
     tabs.removeItemAt( event.tabIndex ); //update the tabs arraycollection -> will call Observer to change the tabnavigator content
In this way closing the tab2 will affect PM2 to tab3 exactly as if the tabs where only "shift" and the selected Object binded again.
To be clear : The selected Object (a VO) is rightly set (eg: tab2 now owns VO from 3) but the PM the "tab" should refer is not PM3 but PM2 !!!
This means that if my PM contains some business method to check/select variable binded from the view this view will show the ones from PM2 and not PM3...
The new situation after tabs2 closed :
- Tab1 owning  PM1 used by inner children of Tab1
- Tab3(in fact the second tab but it may not be the tab3...) owning  PM2 used by inner children of Tab3
If I remove the event.preventDefault() line the behaviour is OK but when I add an other tab the previously closed one appears again (the arrayCollection was not set correctly by the closeTab event.
I've tried several things to solve the problem but it seems it cannot be fixed easily...
Could you please help me with that ?
Thx

Also i feel with the same difficulty. Can anyone help us?

Similar Messages

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • How do I close tabs when I am on web

    How do I close tabs when I am on web

    You probably tap the "+" instead of the "X"
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%207/0752b2c9b46c96453b6 7d05d92d17783.jpg

  • Why does it close Firefox when I click File "close tab?"

    When I "delve down" into subject about three deep and want to then page back - I have no option but to hit File "close tab." When I do this - it closes Firefox! How do I prevent this - Microsoft Explorer 9 has an arrow that lets you page back.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • There is no longer a "close tab" under the file menu, so how do I go back to a previous page when the back button will not work?

    Often the back button will not work. I can find no "close tab" under the menus, which I think used to be there, and which is used with Internet Explorer to go to the previous page. How can I go back to the previous page with Firefox when the back button will not work?

    No you can't. Apple don't support downgrading of iOS.

  • How to have a close tab button when you have only one tab ?

    I'm using FF 24.0 on Win 7 enterprise x64.
    I would like to have an option to have a close tab button ("x") when you have only one tab.
    Is this possible ? How ?
    If not how to submit a feature request ? I did it 10+ times with feedback but didn't see any change.
    Thanks

    Thanks again for the "close button" addon advice. I tried it but no luck, the close button doesn't appear on tabs but in the toolbar (which I do not display).
    So the problem remains for me.

  • I HAVE LOST THE "CLOSE TAB" OPTION WHEN CLOSING A SCREEN THE SYSTEM WILL ONLY CLOSE BACK TO THE DESKTOP? RUSS

    Hi,
    When closing a screen I have, in the past, used the File button [top left] this produced the drop down menu, there was the option to "CLOSE TAB", which I used, this closed the screen but left Firefox open, this option has now disappeared, the only way I can close a screen now is to exit back to the Desktop and reopen Firefox.
    Russ

    Hi,
    Thanks for the prompt response, unfortunately whilst the solution you proposed works on most tabs when I am down to the last one absolutely nothing I do will get rid of it, at present I cannot close the Mozilla Add-ons Manager tab. I have tried your suggestion followed by clicking the cross in the top right of the screen, I have also tried File and then exit. But when I next click onto the Mozilla icon it returns to the last tab shown on the screen.
    Regards
    Russ

  • When a tab is close, firefox next shows the tab to the right. How do I get firefox to show the tab to the LEFT of the closed tab?

    I have 3 tabs open named 1, 2 and 3. If I close tab 2, Firefox will automatically show tab 3. How do I get Firefox to show tab 1 instead of tab 3? Basically, move to the left instead of the right?
    I searched about:config using words like: tab, open, close, next, left and right and compared the results on
    http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries to get a good idea of what each entry did. Learned a lot and reconfigured other aspects of Firefox in the process! But, I would really like to alter the way Firefox processes tab closures.
    Thank you.

    You can look at these extensions:
    *Tab Control: https://addons.mozilla.org/firefox/addon/1480
    *Tabberwocky: https://addons.mozilla.org/firefox/addon/14439
    *Tab Mix Plus: https://addons.mozilla.org/firefox/addon/1122

  • When I open a new page, Firefox won't let me close it without closing altogether the website I am exploring. This has happened since the "update" and happened on multiple website. What happened to "close tab?"

    I used to be able to click "File" and "close tab" to close a page without closing a website. For a few weeks after the last Firefox update, I had to hit "exit" and that worked the same, but now it closes everything. Very irritating and time-consuming.
    How do I close just the one page/pdf/document that I am looking at without closing out the website or my browser altogether?

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and [[Preferences are not saved]]
    [[How to set the home page]]: Firefox supports multiple home pages separated by '|' symbols

  • Firefox asks (twice) to save and close tabs, on new open windows without tabs, when i close them.

    About one month ago, i started to receive a message box from firefox, asking if i wanted to save and close tabs, on newly open windows (and pop-ups) without any tabs open on them.
    And everytime i close the windows without tabs, firefox asks it twice...
    I did not made any changes, so i don't know why it started doing this.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Trouble setting up keyboard shortcut close tab groups

    Have tried at least three different key combos using workspace, keyboard shortcuts.
    Have set them up successfully but they don't seem to want to close tab groups.
    I have set up other special keyboard shortcuts (like flatten image) which work great

    Does it work if you use Insert Menu Item and choose Window>Properties for an action?
    Then you could assign a function key for the action.

  • How can I enable the center mouse click to open and close tabs in Firefox and Chrome?

    I have a MacBook Pro Model A1261 purchased in 2009. On my other mac at work (and my PC) I can center click to open a link in a new tab while in Chrome or FireFox, and also to close a tab by clicking on it in the tabs at the top. I am using an external USB mouse on my MacBook Pro and when I click the center scroll wheel it brings up the dashboard. I looked in the settings but wasn't able to find a way to change that setting for the center button to open and close tabs in my web browser. Is there a way? Please help!

    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    * browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    * browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    * browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.latched -> <b>false</b>
    *http://kb.mozillazine.org/about:config
    See also:
    *pinchy: https://addons.mozilla.org/firefox/addon/pinchy/

  • I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens, but I get the error next time it opens, and this is going on and on where I can not use LR, any suggestions?

    I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens. LR closes on it's own, I reopen it and get that same message next time it opens, and this is going on and on where I can not use LR, any suggestions? If I click on a different set of photos in the libary before I get that message I might or might not get the message next time it oipens, but I still can not get to those photos, and it is not just one or two but most of my photos. HELP!!!!
    Thanks
    Carol

    The first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.

  • Close tab groups actually closes tabs rather than just the grouping. How do I recover all tabs, not just the last 10? Pages and tabs are not in recent history.

    I had a problem with tab groups - if I mistakenly close tab groups, I can only recover the last 10 tabs.
    I had a window with many more than 10 tabs which I reopened each session by going to History > Recently Closed Windows. I knew this was risky - I could lose this if I did not keep it in an open window or recently closed window. So I was looking for a way to save this window with all the tabs. I looked into tab groups and, not knowing what I was doing, I closed the groups of tabs. There seems to be no recovery for other than the last 10 tabs. And open tabs are not necessarily in recent history if I have not accessed the tab and refreshed.

    I don't use tab groups myself, but I know of a way to increase the number of closed tabs that Firefox remembers. Unfortunately, it's not retroactive...
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered
    (3) Double-click the following preferences and enter the preferred new value:
    (A) '''browser.sessionstore.max_tabs_undo''' (default: 10)
    (B) '''browser.sessionstore.max_windows_undo''' (default: 3)
    Regarding what is in history, by default, Firefox will load tabs on demand when you restore a session, rather than loading every single tab immediately. If you turned off that setting, or if you visited all the tabs, then those pages should be in history, but finding them amidst all the others would be quite a challenge...

  • With multiple tabs open, I use to click File, close tab---now close tab is missing and I exit out of Firefox completely. How do I get that choice back "close tab" in the "File" drop down? Thanks. George C.

    The drop down "FILE" in the tool bar use to have a choice to "CLOSE TAB". This is now missing so when I have multiple tabs open and I want to close the most recent, I cannot. I then get warned that I will be closing multiple numbers of tabs, but there is no other choice.
    How do I get the "CLOSE TAB" back in the drop down "FILE" in the tool bar

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

Maybe you are looking for

  • Cannot open attachment in mail

    Once I've replied to an email with an attachment in it I can no longer return and open the attachment.  I'm given the opportunity for a "quick look" when the mail first comes in but that's it.  And once I reply i cannot return to the original message

  • Can I use "else if" in a trigger ?

    My trigger works when I take out the "else if" part. Is there a way I can use something like the "else if" without getting compilation errors ? Either "nsn" or "load_date" is updated in the table ~ never both columns updated at the same time... creat

  • Acrobat 9 - "Title" for fillable field

    I'm new to creating forms with Acrobat, so I'm afraid I don't know the lingo. I apologize in advance. Is there a way to give a "title" to a fillable field that is only visable until the user selects the field? For example, if I want to create a secti

  • Unable to view any contect in my start menu

    I have a brand new HP Pavilion All In OnPC23.  When I first started my PC, I entered all the relevant data.  It ran ok for a few hours. I came back to my computer to find it had shut down.  After restarting the PC it was in recovery mode.  There was

  • Problem with dimensional modeling

    Hi everybody; I'm new in datawarehousing. I want to create a datamart about road accident. I have a very simple E/Rship mode : drivers 1,1 | | | 1,N | vehicules 1,1-------1,N-accient-1,N ------- 1,1- victime | 1,1 | | | 1,N | cause_accident My physic