Dynamic Tab UI Shell - close tab action & number of open tabs control

Hi,
I browsed through the forum, but could not get hold of any concrete solution for the question on how to capture the close tab action event and perform some action on that?
The below thread discusses my question but does not appear to have a proper solution
Re: Dynamic Tab UI Shell: controlling the Close icon
And one other question is, currently in the TabContext the number of open tabs is set to 15 limit. How can I override that such that I do not allow more than 7 tabs open at a time?
Please help me with the above two queries. Thanks !
Regards,
SS

Sorry for so much delay. Finally, got some time to play with the template and downloading the dynamicTabTemplate source code and overriding the closeIcon worked like a charm.
Let me summarize what I did to help someone who is looking for this :)
1) Downloaded the source code for dynamicTabTemplate
2) Added and additional attribute closeTab to the template
+<attribute>+
+<attribute-name>closeTab</attribute-name>+
+<attribute-class>java.lang.String</attribute-class>+
+<required>+
true
+</required>+
+</attribute>+
2) edited the dynamicTabShell.jspx, closeIcon commanlink actionListener to be bound to "#{viewScope.tabContext.closeIcon}"
3) Implemented the closeIcon method in TabContext
+@Override+
+public void closeIcon(ActionEvent actionEvent) {+
CloseIconInterface bean = getBean();
bean.closeIcon(actionEvent);
+}+
4) Generated the jar.
5) Removed the oracle provided default dynamicTabTemplate jar and instead added my custom generated jar to the application
6) Applied the new template
7) Set all the attributes along with the new closeTab attribute. This would take the BackingBean name...example: <f:attribute name="closeTab" value="#{xxxScope.xxxBean}"/>
8) Made xxxBean to implement CloseTabInterface
9) Implemented the closeIcon method with custom code to confirm page close before removing the Tab.
However like you said, i'll keep tab on future updates to the default tab template updates to not miss any bug fixes or enhancements.
Thanks everyone who looked into this for me and Hope this helps someone else :)...Good luck !

Similar Messages

  • Sorry, you've reached the maximum number of open tabs. Please close a few tabs first before opening additional tabs.?

    I have just opened email. There is one email. When I click to open I receve the message "Sorry, you've reached the maximum number of open tabs. Please close a few tabs first before opening additional tabs." How can I have too many tabs? Does anyone else receive this message? What do you do to get to read your email?

    Wow, never heard of that one before, is this on your Mac or an iDevice?
    Or is this WebMail in a Browser?
    http://www.justanswer.com/mac-computers/5gzyr-asked-answer-yet-hit-wrong-button. html

  • After crashing, Firefox is not re-openeing saved tabs from my last session, but is re-opening tabs from a session over a month old. How do I find my saved tabs?

    After crashing, Firefox is not re-opening saved tabs from my last session, but is re-opening tabs from a session over a month old. How do I find my saved tabs?

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Cannot use icloud tab option on ipad and iphone as the open tabs are not listed.

    cannot use icloud tab option on ipad and iphone as the open tabs are not listed.

    just checked everything through and this is deffinately the public beta of iCloud as it simlily doesnt come up in the  settings of ipad or iphone. However the current firmware i am using isnt an itunes download, as i have downgraded and all itunes synced apps onto both the iPad and iphone crash when i open them, is this because i have downloaded the firmware from a third party? i have treble checked that the firmware is NOT hacked and is just a host's official apple firmware, so i cannot understand why this problem is occuring?

  • My new tab closes or replaces an active open tab

    when i open my firefox , i have it set to yahoo.com. my pc at home has no problem, but my work pc is giving me trouble.
    i open a tab to read and before it loads i click back to original tab. when i do this one of two things happen.
    1) my original tab closes
    2)) when i click on my original tab the new tab closes
    i have checked the setting but still have problem
    what can i do?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • All Gawker websites cause massive slowdowns, Not Responding status (but it rarely crashes), and don't always load properly, regardless of the number of open tabs or programs.

    Any time I navigate to one of the Gawker Media sites, Firefox slows down massively. The page loads extremely slowly, and the program freezes up. I often get a (Not Responding) message up at the top of the screen. Other programs on my computer are unaffected. This rarely (only twice in dozens of tries) actually crashed Firefox. It eventually comes back and everything runs fine, on that tab and others, until I try to move to or add another Gawker Media page. Occassionally the Gawker sites don't seem to load properly, but I suspect that may be an unrelated issue, caused by ABP or NoScript blocking ads or pop-ups on individual pages.

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to Tools Menu -> Clear Recent History -> '''Time range to clear: select "EVERYTHING"''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click '''Clear Now'''
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    -> Restart Firefox
    If it doesn't work, see this:
    Firefox never finishes loading certain websites
    https://support.mozilla.com/en-US/kb/Firefox%20never%20finishes%20loading%20certain%20websites
    Firefox cannot load websites but other programs can
    https://support.mozilla.com/en-US/kb/Firefox%20cannot%20load%20websites%20but%20other%20programs%20can
    Check and tell if its working.

  • Using FF7; Syncing my data between laptop and desktop; everything syncs fine, but for the tabs. I have no history of the open tabs of the other device, nor can I find an option to let start a session the latest session of the other device

    FF7.0 beta
    sync on laptop and desktop
    no tab history of the other devices
    solution to start session with latest session of synced device?
    win 7 64bit

    Good instinct not to shut down!
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Copy all sessionstore files (e.g., sessionstore.bak, sessionstore.js) to a safe location (e.g., your Documents folder). Whatever was saved before is in one or both of those files.
    This problem of a window sometimes loading the correct number of tabs but the tabs not being navigated to the corresponding pages has been mentioned before, but I do not recall anyone identifying what causes it or how to solve it. If Firefox saved the URLs of those pages, they will be in one or both of those sessionstore files.
    These threads have suggestions on how to "mine" the old file to extract the URLs:
    * Using Firefox's Browser Console (formerly known as Error Console): https://support.mozilla.org/en-US/questions/969046#answer-471950
    * Using Firefox developer tool "Scratchpad": http://forums.mozillazine.org/viewtopic.php?f=38&t=622036&start=60&p=12098147#p12098147
    * Using a third party website: https://firefox-session-restore.herokuapp.com/
    Can you recover them?

  • How can I get Firefox to stop saving the open tabs when it closes and reinstating them the next time it opens?

    Even tho' I've set options for Firefox to delete history when it closes, it still remembers my open tabs and tries to reinstate them the next time it starts. This causes two problems: 1) it takes longer for Firefox to close, such that if I start it again a few sec later it is still running and won't restart; 2) it sometimes reopens websites I am no longer want when it next starts. The latter also makes the last sites I visited visible to the next user, which I (and I suspect most other users) want to avoid. I would like to turn this feature off since it is far more of a problem than a benefit!

    @cor-el
    I have the same problem.
    My settings are already configured to "Show a blank page". It does show a blank page normally, but when FF crashes, it attempts to reload all the tabs from the previous session when it restarts. My version is: Firefox/3.6.13, and I'm running XP sp3 if that matters.

  • What is the maximum number of children tabs related to one parent tab?

    I have an application with several parent tabs, there are 21 children tabs related to one single parent tab. If I create the number 22 child tab, all the 22 pages related to this parent tab show an error and do not display.
    The only solution is to move the 22nd child tab to a distinct parent tab with not as many children.
    Is that the limit? 21 tabs per parent? Is there any way to attach more children to one parent?
    I am using the grey and orange theme.
    Francisco

    Don't think there is one.  I believe it's only limited by the storage available in your account.

  • How i can have all my opened tab when upgrade my firefox?

    now i'm still using very old Firefox 3.6.12, and i want to upgrede it. I always using "save and quit" to my all opened tab when quit and not using bookmarks. total about 300+ tab opened.
    i already try upgrade once and all my tab is lost. and because of that i do system restore and reintall with old one again.
    how i can have all my opened tab when upgrade my firefox?
    sorry my english is mess....

    I do not think anything much has changed with the Firefox system restore files and how they are handled so it may be possible to keep these and use them after an upgrade in a new version of Firefox.
    It is '''very important that you backup the Firefox profile''' see
    *[[Back up and restore information in Firefox profiles]]
    If you do that you will be able to use the open tabs again. <br />(May need to reinstall Firefox 3.6 again possibly as an additional browser) <br />
    You must
    * Put that profiles somewhere safe. NOT in the Firefox profile or program path. Your Window's Desktop is ok as a safe place.
    *When needed. Only work with copies of those files. Keep the original files and folders safe.
    Upgrade to the latest Firefox. Because you are going up so far from 3.6 to 27 do this by installing the new Firefox 27. Do not try using each upgrade step from 3.6 to 27.
    Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems?esab=a&s=troubleshooting&r=3&as=s#w_5-reinstall-firefox here].
    WARNING: Do not run Firefox's uninstaller or use a third party remover as part of this process, because that could permanently delete your Firefox data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <br />These cannot be recovered unless they have been backed up. <br />(That is why I asked that the profile was backed up FIRST)
    You may be surprised and find Firefox still has the old tabs once it is reinstalled.
    Post back with how you get on. We should be able to get access to the old tabs again.
    In future I suggest you do not try to rely on keeping 300 tabs open all the time without bookmarking them. You will at some stage probably lose some or all of these tabs, or their related states and history.
    Please in future
    * Backup your profile on a regular basis.
    **Once a week means you may only lose one week's open tabs.
    *Bookmark important open tabs.
    ** Bookmarks keep well.
    ** Open tabs do not keep well & may be lost.
    * If possible reduce the number of open tabs you use.

  • Open in Tabs always replaces  all other open tabs ?

    This is unacceptable. Suppose I have 5 open tabs and then I pres Open in Tabs (this command is available on the Toolbar when I create collections)
    This will close down all the 5 open tabs and replace them with the tabs in the folder!! I want to keep my 5 tabs open aswell.
    Message was edited by: Bomiboll

    Yes, I use the internet extensively most days and just switched to Mac/Safari from Windows/Internet Explorer. I love Apple and the Mac. So much easier to use in many ways, especially when you learn shortcuts. On Windows/IE I could have 3-6 browsers open, each with their own tabs, and see in them in the task bar and easily choose them. I am having trouble with this kind of visibility while switching in Safari. One thing I do love is the tab collections. Excellent! I have one for the weather, with 2 tabs in it, and one for my investments, with 3 tabs. I would agree strongly that their needs to be an option to open these collections in tabs, where it added to the existing browser's tabs instead of replacing them. Also, another need: Allow me to see titles of my open browsers and when I hit Apple` (Command`) to switch browsers, I see the focus change to the other browser title, on the bottom of the screen like the tabs go across the top. Or have them pop up where the tabs are now, when Command` is hit. Then they switch back when you let go of Command`. For people like me who are on sometimes 10 browsers, each with 3-5 tabs, all day long, there needs to be much more visibility to what is open, and easy ways using both shortcuts and mouse to navigate all of the browsers and tabs and be able to see your browser titles with tab titles underneath. Like a sitemap or an outline with indents. It could me similar to when you hit Command-tab. I actually think Command tab should be expanded to include the browser windows, each one becoming an "application" along side of Word, Mail, iCal, Address Book, etc, all of which I have open all day. Then I can easily switch between my apps and browsers and have good visibility. Now I have to switch to Safari, then a second motion and process to switch to the correct browser out of 3-6, or even 10 browsers. So you could put them in the popup when Command - tab is hit. Then under each browser, show me an abbreviated title of the browser, and under it, show me abbreviated tab titles associated with that browser. Allow me in preferences to show or not show the tab titles. Expose is great but I would rather have the choice to do everything with Command - tab. For how much I use the internet, Command-tab keeps my hands on the keyboard and saves me so much time because I don't have to take my hands off the keyboard. Expose is great, but I loose time. Clicking on the Safari dock icon and holding is good too, but again my hands leave the keyboard, maybe 50 times a day and it costs me time and is inefficient. This whole thing I just wrote is a fabulous idea. It would be revolutionary if Apple did this. Apple - If you like this idea I have another one that is completely revolutionary and a whole new product/communication concept. I need to get a provisional patent on it first before sharing it. Anyway, I'm an ideas guy and commonly have great ideas and would like to know how I can do that with Apple on a consulting basis through my company, Kokopelli's Earth, Inc. www.kokopellisearth.com. Meanwhile, I'm just going to keep posting on these boards. Watch my posts. They may not be often, but when I say something, it will usually be a pretty good idea. Or at least start the thinking process on how to improve something greatly. At least I think so. I love what you are doing. I have changed over all of my stuff to Apple. 2 Mac Books in the house, 2 iPhones, Mobileme, Time Capsule, Apple TV, Airport. Love it all, works so well and easy, great support on the phone and fabulous in the store. Amazing stuff. Sorry to ramble but I just needed to say all of that. Hope this helps someone. Peace

  • Firefox does not offer to save or actually save open tabs on version 3.6.8

    Every time I close Firefox, since the last version update, there is no pop-up window that offers to save all open tabs. Also, it does not save any open tabs on it's own either. I want to go back to the previous revision please, if the saving of tabs can not be updated correctly.

    Tools > Options > General|Main > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    Tools > Options > General|Main > Startup: "When Firefox Starts": "Show my home page" "Show a blank page"
    You can reset the warn prefs on the about:config page via the right-click context menu.
    browser.tabs.warnOnClose , see http://kb.mozillazine.org/About%3Aconfig_entries
    browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
    browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart

  • Firefox automatically switches to newly opened tabs, have tried reinstallation already.

    Ever since I updated my firefox a month or two ago I now switch to any new tabs opened within my browser....And yes, I know there is an option that says "When I open a link in a new tab, switch to it immediately." This is obviously unchecked. On my laptop there is no issue with this, when I open a number of things into tabs they all file in right behind one another and I can switch over to them when I wish to. Now on my desktop PC, if I go to open a few successive tabs I will automatically switch to each newly opened tab and have to go to my original window to continue what I was doing.

    I only use the default theme on Firefox. I would say it does it the worst on websites such as Facebook, if I open multiple tabs on different people or groups or events etc. it will start tabbing me over one...if that makes any sense. So I open up 3 tabs and then I go to open up another tab and it will then shift my screen one tab over

  • Is there a way to have the 'new tab' icon on the toolbar AND have the "new tab" button at the right end of my tabs, as before? It seems to be either/or.

    Under the previous version of Firefox I had the "new tab" option in both locations. When I upgraded, the one at the end of the tab line had disappeared. I used the suggestion from the forum to reset to default and it did reappear, but the icon in the toolbar had disappeared. Since there is no + in the customization window I cannot place a new one, and if I drag and drop from the tab bar it moves to the toolbar, but will not duplicate itself. I use either of these interchangeably, and having only one or the other is a real annoyance, and does slow me down when doing multiple searches or otherwise utilizing multiple tabs.

    Hi, I have a similar problem with 12.0 of Firefox. The 'Add New Tab' tab has moved from the righthand end of open tabs to the left hand end.
    If I right click on an empty tab area and select customize the "Add New Tab' tab disappears and an Add New Tab icon appears at the right hand end. I can drag and drop this icon into the Customize Toolbar window.
    However if I drag it from the window back to the Tab toolbar area on the right. It initially appears on the right. Then clicking 'Done' on the Customize Toolbar window converts the icon to a tab but places it back at the left hand end of the tabs.
    I'm sure this didn't happen before - so it's a possibility I have messed something up but I can't seem to correct it?

  • How do I bookmark all my currently open tabs in one click in Firefox 4?

    I used to be able to bookmark all my currently opened tabs with a click of one button under the Bookmarks menu, but that option is now gone. Is it gone forever or I just don't see it?

    Hi, you can bookmark all your currently open tabs with right click on any of your open tabs, there you'll find the option '''Bookmark all tabs...''' (this option was there also in Firefox 3.x), then you must provide a location and a folder name to group those new bookmarks. Hope this info will be helpful to you.

Maybe you are looking for

  • Problems with Adobe Readrer v9.2

    I have Adobe Reader 9.2 installed on my Dell Inspiron 9300 and Adobe Reader comes up with an error "Adobe Reader has encountered a problem and needs to close". Why is this?   Should I try to reinstal the original version coming with the Dell? Can you

  • Planning form not opening at Smart View through Workspace

    Hi Gurus,         I have an 11.1.2.3 environment and I'm trying to open up a Planning form inside Workspace using the following steps : File --> Open in SmartView.         Right after Excel shows up I've got the following error message :    "The form

  • Mac Pro 2008 reboots / Changes the language

    Updated a week ago, and since then my MacPro rebooted several times a day. There are not any special programs it happens in, it is very random. At the same time it changes my language of choice from the Danish back to the U.S., but this happens all t

  • Publish through Iweb SEO only?

    I just was told on RAGE forum that I should only publish through Iweb SEO tool after installing google analytics. This was after i reinstalled it yesterday, and it appeared to be gone today. He said it went away because I published changes in my site

  • Attachments problem

    I would like the remove or delete the attachments on the instance variable "attachments". I can create only new attachments but I can modify by code. I have to use the PAPI? Someone could you help me? Thanks