Programmatically setting selected tab - problem

Hi,
I have two pages. On the first one is a tab set with three tabs. I have the following scenario:
I go on the third tab and then on the page two. When I go back on the page one, I want that third tab is selected, but always is selected the first one. In the prerender method of the page one I set if I back from page two, third tab to be selected with setSelected method of tab set component. But, it doesn't work.
What I should do?

Hi,
Yes, you can set the selected tab programmatically. You can set it thus
tab3.setSelectedChildId("tab3");
This will set the tab with the id tab3 as the selected tab.
In case tab3 has children, then you can set one of them as the selected thus:
tab3.setSelectedChildId("tab7");
Hope this helps
Cheers
Girish

Similar Messages

  • ADF Faces: af:menuTabs - How to set selected tab

    I cannot find any documentation on how to set the selected tab of an af:menuTabs instance.
    Please help.

    Hi,
    the method above works if you manually inserts the menu items into a menu component, but not if you declaratively bind each component to a menu model.
    Following the ADF developer's guide, I created a dynamic menu using menuTabs (Section 11.2 Using dynamic menus for navigation). But somehow I don't get a difference in appearance between the selected and unselected tabs.
    I am also confused with the explanation in the tutorial. It says "The menu model in conjuction with nodeStamp controls whether a menu item is rendered as selected. As described earlier, a menu model is created from a tree model, which contains viewId information for each node. ViewIdPropertyMenuModel, which is an instance of MenuModel, uses the viewId of a node to determine the focus rowKey. Each item in the menu model is stamped based on the current rowKey. As the user navigates and the current viewId changes, the focus path of the model also changes and a new set of items is accessed. MenuModel has a method getFocusRowKey(), which determines which page has focus, and automatically renders a node as selected if the node is on the focus path."
    Any suggestions where I should add code to change the appearance of the selected tab? I am using the default Oracle skin.
    Greetings,
    Birgit

  • Tab Set Label Colors - How do I change the selected tab label color?

    No matter what color I tell it to use for the Labels - Selected color I get white.  Is this a known bug in the system or am I not doing something correct.  I have a tab set component and a label based menu selector component on my display.  I've set up the labels and backgrounds for both components exactly the same but I can only get white for the selected tab set label.
    Edited by: Maureen LaComb on Feb 19, 2009 5:38 PM

    Hi, Maureen
    You can set the color of Tab Set by using the Following Steps.
    --> Select the Tab Set
    --> From the the Properties Window
    --> Select Appearance
    --> There are Two Tabs "Text" and "Color"
    --> From the Color Tab you can Select the Background Color
    --> Tab BackGrounds Or Labels from here you can select the color.
    But this setting will Apply to all the Tabs in a Tab Set, I think you can't set the Specific Setting for a single Tab in a Tab Set.
    Please Reply if any Issue,
    Kind Regards,
    Faisal

  • Setting the Font of Selected Tab in JTabbed Pane

    Hi,
    i have A JTabbedPane , I want to set the font of the selected tab to be bold. Can anyone please tell me how can i do that...
    waiting for reply ,
    Bye
    Sanjeev

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2BJTabbedPane+%2Btab+%2Bfont&col=javaforums

  • Setting the color on selected Tab

    Hi,
    I can't seem to figure out how to set the color on the
    selected tab in a JTabbedPane. I've added a
    ChangeListener but when I try to use it, it only
    changes the color after the tab has been selected.
    I want to change it while it is selected.
    How can I do this?

    Maybe this helps:
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
    Kurta

  • Problem in data selection tab in infopack

    Hi,
    I created one text datasource ZACCOUNT_GRP_TEXT based on infoset.
    in r/3 , SPRAS is selected as a selection field .
    but wen i created the infopak for this , in data selection tab its not giving me the option of sparas selection dats coming blank .
    plz let me know the reason why data selection tab is blank and how i can correct it.
    thnx

    hi,
      go to extract structure and see whether the selection coulmn is checked for this field.
    if not check then check and save it.
    now go to rsa3 and see wheter the field is coming in selection.
    if yes then replicate the datasourcee to the bw.
    now create the infopackage u get the field in IP.

  • Color of selected tab panel tab

    Hello all,
    I'd like to know the orange like color of the upper part of a selected tab panel tab, see the picture below.
    Actually, these are two colors, orange and a darker, 'shaded' orange. I don't mind which color value I can obtain, but I'd like to use the same color for other controls (LED, decoration frame) as well.
    Does this color depend on the Windows theme? If so, I'd be happy about a possibility of obtaining this property programmatically.
    If this color is always the same, I can obtain it myself using Photoshop...
    Thanks a lot,
    Wolfgang
    Solved!
    Go to Solution.

    When the panel has ATTR_CONFORM_TO_SYSTEM_THEME set, CVI lets Windows draw the tabs by calling DrawThemeBackground with partIDs such as TABP_TABITEM, etc. The picture that you posted is the XP theme. The Windows 7 theme is different and it looks like this...
    I checked out the Windows function GetSysColor, but didn't see a way to get that color. Anyway, since the tabs draw differently on XP and Vista/Windows 7, you may not want to use that color in different controls.

  • How do I set new tabs to BLANK? Why did you remove that choice from me?

    FF 5.0
    There use to be an option to set new tabs to blank.
    How do I do that now that you removed the option.
    I tried the obvious (?) of setting the new tab to "about:blank" and it still comes up with what ever search engine is paying you money.
    I even tried an add on to set it to blank. That didn't work either.
    Are we no longer allowed to have a clean, fast loading new page?

    Firefox always Opens a New Tab in a Blank page. You must have some add-on installed that's making the new tab to not open as Blank.
    -> click '''Firefox''' button and click '''Exit'''
    -> '''Start Firefox in Safe Mode''' (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * https://support.mozilla.com/kb/Safe+Mode
    Firefox Safe Mode window will open. DON'T SELECT ANY OPTIONS, just click '''Continue in Safe Mode'''
    Check if the New Tabs are now opening as Blank pages while you are in Firefox Safe Mode.
    -> '''The problem does not occur in Safe Mode'''
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes#w_the-problem-does-not-occur-in-safe-mode
    Check and tell if its working.

  • Spry Tabbed Panel - Dotted outline around selected tab

    Hello there,
    I noticed in Spry Tabbed Panels, once a tab is selected,
    there is a dotted outline around the selected tab (the 'focus').
    How do I hide it? I've seen a similar set up using JQuery which has
    the dotted outline automatically disappear after a tab is selected.
    I've set up a demo at my personal website to illustrate what I'm
    getting at.
    http://www.sgdanielwang.com/spry/tabbed.htm
    Could someone spare a bit of time to have a look and advise
    me?
    Thanks in advance.
    Dan

    Thanks, Arnout.
    Your solution got rid of the dotted focus outline. However
    the problem persists in Internet Explorer. I read at the following
    site:
    http://codylindley.com/Javascript/223/hiding-the-browsers-focus-borders-should-i-shouldnt- i
    that the focus can be hidden using a javascript which looks
    for all <a> element in the HTML file and disables the focus.
    But in the case of the Spry Tabbed Panel, the <a> is actually
    specified in CSS. Is there a CSS 'hack' to make the focus disappear
    in Internet Explorer?
    Rgds,
    Dan

  • Skinning UI Shell selected Tabs

    Hello everybody. I've been skimming through the net a while for a simple but yet annoying problem.
    We've built our webapp based on the UI Shell architecture: http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html
    Everything works great and our styles are fine as well, but there is one small problem. Older monitors lack contrast, so our tabs are not distinguishable from the background.
    http://img211.imageshack.us/img211/5184/pic1sn.png
    http://img140.imageshack.us/img140/171/pic2md.png
    As you can see, I've tried to work with the style sheet and set the panelTabbed background color to Orange. It shows up(very ugly) on the wrong tab. The "main" tab isn't rendered this way. So obviously my skinning didn't apply to this one.
    This is the root tag of the .jspx file: +<af:document id="d1" theme="dark">+
    This is in my customCSS file:
    af|panelTabbed::tab:selected
    +{+
    color:Yellow;
    background-color: Orange;
    cursor: crosshair;
    +}+
    Any ideas, why only the one tab renders the orange, the main one however doesn't?

    Okay so I made some progress with this but still can't quite figure out exactly how to get the look I want.
    I modified the .css file:
    af|navigationPane-tabs::tab:selected af|navigationPane-tabs::tab-start{
    background-color: red;
    However it doesn't set the tab itself to be red but rather the area behind the tab. It doesn't do anything if I set color:red;
    This is how it looks atm:
    http://img211.imageshack.us/img211/6329/tabbed.png
    As you can see, the red isn't supposed to be behind the tab but rather the selected tab itself should be red. I know I will have to set tab-content and tab-end as well, but thats not whats important.
    Here's also a firebug screenshot:
    http://img819.imageshack.us/img819/426/firebugh.png
    Any ideas how to get the "tab content background" or whatever one should call it to be skinned?
    Any help is greatly appreciated!
    Thanks,
    Pascal

  • Supertabbar not focusing the selected tab's canvas

    Hi,
    I have a buttonscrolling canvas, and on it there is a Hi,
    I have a buttonscrolling canvas, and on it there is a supertabbar.  I have a lot of tabs on it, more than what can fit in a screen, so in order to scroll to the tabs at the end i have to use the button to navigate to the right or left.
    What is the correct way to set focus/activate the currently selected tab and get it into view?

    Yes, the items are in a frame.
    Both automatically and locked for the frame upate layout property causes the problem.
    I want to tell that the form in run time is ok, but in the forms builder the text items are not in their specified positions.
    Then when changing any property for the items even if it was not related to the item position, the item is then displayed in the correct position.

  • Set Default Tab For A Step

    We have a system that has been installed at a couple of affiliate sites in Japan and Romania (we've been developing in Australia).  It runs on TestStand 4.2 with supporting code written in LabVIEW 8.6 (although the Romanian site uses TS4.2.1 and LV2010).  We have numerous custom steps in a types palette file.
    One of the sites has complained that when they add some specific steps (custom Numeric Limit Tests, in particular) to a sequence, the tab shown in the Step Settings pane is the "Limits" tab.  It would be more convenient and more useful to show the Edit tab (the one that shows the buttons for the Edit sub-steps).
    I realise it's just a matter of clicking on the relevant tab.  I also realise that once a file is saved, the last-selected tab is shown for each step when it's re-opened.  However, the customer is always right, so I need to see if it can be "fixed".
    Is there a way of setting the default tab for a custom Numeric Limit Test step to something other than the "Limits" tab?
    Help files, Google and the NI pages don't seem to be forthcoming on this issue.
    Thanks,
    Geoff
    Geoff Field, BE, CLAD, MIEAust
    Professional geek, amateur stage-levelling gauge
    Solved!
    Go to Solution.

    Thanks Rohama,
    I will mark the issue as "not fixable" and be done with it.
    Regards,
    Geoff
    Geoff Field, BE, CLAD, MIEAust
    Professional geek, amateur stage-levelling gauge

  • Data Selection tab in infopackage

    Hi Gurus
    Its a very basic question but can anybody tell me what function the "data selection " Tab does in infopackage?
    I know the setting required on R3 side for that but not sure why we use the data selection.
    Can we use this data selection for master data as well?

    Hi Kris,
    Data Selection tab allows you to select: date ranges, document numbers and the like.
    In order to have filds in there, you should first select in the DataSource in the R/3 side wich field could be selected.
    If it is a Generic DataSource, you can do it running RSO2 transaction code.
    <text removed by moderator>
    Claudio
    Message was edited by: Matthew Billingham

  • Unable to change date selections in data selection tab

    Hi experts,
    I'm new here, i scheduled the init load with date selections in the data selection tab, i successfully loaded the data and now i want to go for the delta but i'm unable to delete the date selection in the data selection tab. what problem is this.
    can we load the data with the same selections in delta update ? how can we delete the date selections
    orelse nothing happens even if there is a selection in the data selection tab? the date is a past one.
    help me out plz
    regards

    delta loads copy the selections from the init load.
    Often while scheduling delta loads u will see a message 'selections copied from the last init load'.
    cheers,
    Vishvesh
    Message was edited by: Vishvesh

  • Adding a field in data selection tab of Info Package

    Hello,
    how can I add a field for selection in the data selection tab of the info-package in BW 3.5.
    Thanks,
    SD

    Hi,
    You need check Selection in RSO2 in ECC then that field is available for Selectgion in InfoPackage.
    Here I'm giving 0CUST_SALES_ATTR DataSource Example for Selection Change, so see the logic and accordingly you can change your DataSource Selections.
    See the properties of that field in RSA2 in ECC and you can also make it for selection, use the following program and see it.
    In ROOSFIELD table give the datasource 0CUST_SALES_ATTR and see , select only Active version Fields.
    For the following fields you can find FIELD = X, it indecates that it is abailable for selections, so in this way you try to do it by using following program and check.
    KUNNR
    SPART
    VKORG
    VTWEG
    REPORT ZBI_ROOSFIELD NO STANDARD PAGE HEADING .
    tables ROOSFIELD.
    Update ROOSFIELD set SELECTION = 'X' where
    OLTPSOURCE = '0CUST_SALES_ATTR' and
    FIELD = 'FAKSD '.
    Also see SAP Note : 1033847
    Re: Field Selection in Datasource 0CUST_SALES_ATTR
    Thanks
    Reddy

Maybe you are looking for