Dynamic Tab UI Shell: controlling the Close icon

Hi,
When I open dynamic Tab in page, along with the Tab, close icon will appear to close the Tab.
By default I have to show a Tab that should not be closed at any time.
Could anybody suggest how to implement this?
Thanks,
Vinod

The source code for the UI Shell is available here (search for .zip in the page): http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html
Basically make your own cut of the shell, and add whatever functionality you want to the page template.
CM.

Similar Messages

  • Oracle dynamic tab ui shell template : the rest of page missing

    im new in adf
    hi;
    im using oracle dynamic tab shell which i download it from oracle site.
    my problem is
    i have a page fragment ( two.jsff) and i drag and drop from data controls vo as adf amaster table ,detail table
    when i run the application first.jspx and click the fisrt link the page show me only the fist table , i can not see the second table Unless change the the zoom level in the internet explorer( to make application appearance smaller)
    how to solve this problem.
    i drag and drop vo directly to the panelGroupLayout , should i use panelstretch?
    - some one told me the problem in computer screen resolution ( he say when your create an application ( jdeveloper ) with high screen resolution then take it to other computer and edite the page you will face this problem) is it true.
    thanks

    Hi User,
    you need to look for customizing the UI shell template.
    here are few articles may help you to customize the default UI shell template.
    Techie gossip: ADF talk: customize the logo inside Dynamic Tab UI Shell
    Andrejus Baranovskis's Blog: Building Custom UI Shell with ADF 11g R2

  • 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 !

  • How to verify transaction state under a tab in Dynamic Tabs UI Shell?

    Hi,
    I'm using Dynamic Tabs UI Shell to load taskflows under dynamic tabs. If a particular taskflow under a tab becomes dirty, upon close I should warn the user. What is the best way I could check if this particular taskflow has become dirty?
    Thanks,
    Pramod Gujjeti
    Edited by: pramod gujjeti on Jun 16, 2010 1:28 AM
    Edited by: pramod gujjeti on Jun 16, 2010 1:29 AM

    Hi Pino,
    Thanks for the reply.
    The given URL only handles scenarios assuming a region from a flow has no flow embedded within it. And it seems to be not a generic approach to handle dynamic tab close.
    I'd worked on a similar but more generic approach which could of use to this thread watchers, hence posting the code:
    In the method that is invoked on tab close:
    boolean isTransDirty = false; // holds the transaction state of the dynamic tab content for which close event is fired
    try{
    DCBindingContainer dcBindingContainer = (DCBindingContainer) AdfUtils.resolveExpression("#{bindings}");
    dcBindingContainer = (DCBindingContainer)dcBindingContainer.getExecutableBindings().get(this.getSelectedTabIndex());
    if(dcBindingContainer != null){
    for( Object exeBinding : dcBindingContainer.getExecutableBindings() ) {
    isTransDirty = isTransDirty(exeBinding);
    if(isTransDirty){
    break;
    System.out.println(" is Trans Dirty : " + isTransDirty);
    }catch(Exception e){
    e.printStackTrace();
    // method isTransDirty(Object ..)
    private boolean isTransDirty(Object exeBinding){
    boolean isDirty = false;
    try{
    if(exeBinding instanceof JUIteratorBinding ){
    JUIteratorBinding juIteratorBinding = (JUIteratorBinding) exeBinding;
    System.out.println(" Iterator : " juIteratorBinding.getName() "\t" + "D.C : " + juIteratorBinding.getDataControl().getName());
    isDirty = juIteratorBinding.getDataControl().isTransactionDirty();
    if(isDirty){
    System.out.println(" Dirty because of " + juIteratorBinding.getName());
    return isDirty;
    }else if(exeBinding instanceof DCTaskFlowBinding){
    DCTaskFlowBinding dcTaskFlowBinding = (DCTaskFlowBinding) exeBinding;
    for( Object taskflowExeBinding : dcTaskFlowBinding.getExecutableBindings() ) {
    isDirty = isTransDirty(taskflowExeBinding);
    if(isDirty){
    return isDirty;
    }else if(exeBinding instanceof JUFormBinding){
    JUFormBinding jUFormBinding = (JUFormBinding) exeBinding;
    for( Object juFormIterBind : jUFormBinding.getIterBindingList() ) {
    isDirty = isTransDirty(juFormIterBind);
    if(isDirty){
    return isDirty;
    for( Object juFormExeBinding : jUFormBinding.getExecutableBindings() ) {
    isDirty = isTransDirty(juFormExeBinding);
    if(isDirty){
    return isDirty;
    }catch(Exception e){
    e.printStackTrace();
    return false;
    }

  • Dynamic Tab UI Shell: Navigation inside Tab

    Hi,
    By using Dynamic Tab UI shell, I have created a page, inside this page, task flows are opened as Tabs.
    I have opened two tabs TabA and TabB.
    I clicked on TabA, press keyboard tab, it goes to TabB instead of navigating inside TabA.
    I could navigate to last opened tab's contents only.
    Could anybody suggest how can I navigate inside a Tab, instead of navigating to all the opened tabs.
    Thanks,
    Vinod

    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 !

  • [Dynamic Tabs UI Shell Template] Access AM from main page

    Hi
    I am using JDeveloper 11.1.2.1
    I have a doubt about UI Shell Template. I'm using this template and this user data map implementation to store user preferences:
       http://andrejusb.blogspot.com.es/2012/05/solution-for-sharing-global-user-data.html
    I use this solution because I need to share the user language in the view layer and the BC layer (some viewObjects depend of language)
    I have a use case where I need to change the user data map from a managed bean (the user changes your favorite language from UI). Because I use the UI Shell template with several BTF in ADF libraries I don't know how can I access the application modules of these BTFs or the DataControls from the managed bean in the main project that contain the home page based on the UI Shell Template.
    Any suggestion will be appreciated.
    Thank you

    Hi User,
    you need to look for customizing the UI shell template.
    here are few articles may help you to customize the default UI shell template.
    Techie gossip: ADF talk: customize the logo inside Dynamic Tab UI Shell
    Andrejus Baranovskis's Blog: Building Custom UI Shell with ADF 11g R2

  • Latest Oracle Dynamic Tabs Shell (Dynamic Tabs UI Shell ) Source/JAR

    Hi,
    Please can any body provide the link where i can get the Latest Oracle Dynamic Tabs Shell (Dynamic Tabs UI Shell ).
    Reg,
    Brahma B.

    Hi John,
    Thanks for your reply..
    I got the jar for UI Shell from the link you have provided. Here am trying to create my own TabContext by extending the existed one in the jar file.But jar contains the Tabcontext as final so am not able to extend and create my own CustomTabcontext.
    While i started working with tabcontext i got the source of UI Shell(first version) and i added some code in Tabcontext itself for achieving some functionality as per the requirement like dirty checking and displaying the dailog like Do you want save changes with some buttons. Now i want to use the latest Ui Shell Tab By including by code as well.
    Please can you give any suggestion how can i proceed here.
    Reg,
    Brahma B.

  • How to disable/control the dock icon sizes when hovering over them?

    Hello.
    How do I disable/control the dock icon sizes when hovering over them? They are too big when enlarged with my mouse cursor.
    Thank you in advance.

    BDAqua wrote:
    Hi,
    Apple icon at the top left of the screen>Dock>Dock Preferences>Size & Magnification.
    Thank you!

  • My tabs no longer show the correct icon with each one, just generic ones now?

    I have Windows 8.1 and the newest version of Firefox. My tabs used to show the website icon for each tab. Now there are only 4 correct icons and the others have a generic blue disc in a box. I liked just having the recognizable icons. Can I get that back?

    You can check these prefs on the <b>about:config</b> page and make sure that they have the default value true.
    *browser.chrome.favicons
    *browser.chrome.site_icons
    You can open the <b>about:config</b> page via the location bar and you can accept the warning and click "I'll be careful" to continue.

  • Finally I realised that my new iPad2 is a DEMO UNIT. Thats why I can't control the appl icons. How can I turn this unit like a retail one?

    Finally I realised that my new iPad2 is a DEMO UNIT. That's why I can't control the appl icons. How can I turn this unit like a retail one?

    Tasz66 wrote:
    Yes I can't. When I try to press and hold an icon, is doesn't wiggle. Also the label at the back of the box says "...white - Demo"
    Well I guess that settles that then!
    We just wanted to make sure that you did realize that you cannot delete the preinstalled apps and you can't download them again either, so if that was the basis on which you believed that you had a demo model, we were just double checking.

  • ADF UI Shell Controlling the tab launch

    Hi Everybody
    I have a tree component displayed in the navigational area of the UI shell. The tree displays, let say employees. I need to open a new tab for the distinct employees, However if the user click on same employee multiple times then it should open in the same tab. I set the parameter reuse instance = true in the OpenMainTask because i need to launch the the distinct employees in different tab, But i am not able to control it if we click on the same employee multiple times.
    Any help or links would be greatly appreciated.
    Thanks,
    Harish

    The source code for the UI Shell is available here (search for .zip in the page): http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html
    Basically make your own cut of the shell, and add whatever functionality you want to the page template.
    CM.

  • Firefox launches and re-loads my tabs, but clicking on the tray icon doesn't display the window

    I can see that Firefox is loaded and running (running Windows 7) - I can hear notices of emails arriving and see the miniature version of the active tab when my mouse hovers over the icon in the tray - but when I click on it it doesn't expand the window so that I can view it. I have tried closing and re-opening as well as restarting my computer. I'm hoping for a solution that preserves the open tabs I currently have. Thanks in advance for any and all help!

    * Use Restore or Maximize in the right-click context menu of the Taskbar icon to set focus to the Firefox application if you do not see the Firefox window.
    * Open the system menu of that Firefox window via Alt+Space and see if you can move and resize that window (use the keyboard cursor keys).
    If that works then first close all other open Firefox windows and then close Firefox via "File > Exit/Quit" to save that setting.
    If the above didn't help then see:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • New tabs do not include the history icons as before.The option to show images on a page does not appear in upper right of page.

    The solution in the FAQ's is clear, but the small icon that is supposed to be showing in the upper right of a new Tab page are not showing up so that I can get the images to appear. I recently installed Java 7 and after that they had disappeared. Can you help me get them back? They are very helpful.

    You can reset the browser.newtab.url pref on the <b>about:config</b> page via the right-click context menu to the default value.
    You can open the <b>about:config</b> page via the location bar and you can accept the warning and click "I'll be careful" to continue
    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).

  • Is there a way to open a number of specific websites on three different tabs by clicking on the Home icon WITHOUT having them open everytime I start Firefox?

    It's great to be able to have Firefox open more than one homepage but I'd like it to do that only when I click on the Home icon, not every time I open Firefox.

    You can make a backup copy of the sessionstore.js file in the Firefox profile folder.
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Windows hides some file extensions by default.
    Among them are .html and .ini and .js and .txt, so you may only see file name without file extension.
    You can see the real file type (file extension) in the properties of the file via the right-click context menu in Windows Explorer.

  • The x mark at the right corner of each tab is missing in my ff4.1. I have to right click the tab and then choose the close tab from the drop down? Is this a bug or am i missing something

    I am using FF4.1 and the x mark on the right side of each tab is missing
    Addons i have installed are
    ABP
    Download helper
    Firebug
    Forecast Weather
    Ghostery
    Live Http Headers
    Save as PDF
    Test Pilot

    I think we can eliminate the graphics card as a suspect (and therefore its driver).   I just re-connected my monitor using the internal graphics processor. The Intel 4600.  Not fantastic but actually has better features than the card I had hooked up before. (I might as well stay with this for now. It's an HDMI hook up.)
    The problem is still there.
      This gets more curious all the time.  At this point It would seem that the the likelihood of this being a bug is more or less zero, as myself and one other individual are the only ones reporting it.
    So, I'm thinking it has to be a flawed install. Maybe some line/lines of code are corrupt, if that can happen while still maintaining the rest of the programs integrity.
    Any other thoughts anyone?
    Derek.

Maybe you are looking for