Cannot dynamically add actionlistener to Tab or TabSet

Hello,
I have a custom component that must create a Tabbed look. I'm using the Studio Creator TabSet with Tabs. I cannot for the life of me get it to register and use an actionListener. I've done this with other components, but this plain doesn't work (for me). Has anyone been able to use it this way? I've tried numerous approaches and here is the one that's worked for me in other components....
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
ELContext elContext = FacesContext.getCurrentInstance().getELContext();
ExpressionFactory expressionFactory = application.getExpressionFactory();
MethodExpression myActionListener = expressionFactory.createMethodExpression(elContext, "#{SCTabsBean.tabClicked}", null, new Class[] {ActionEvent.class});
And oh yes, I have used the example code for the Woodstock version and also the old fashioned SC version and neither of them worked in my local environment.
It is not an option for me to use WoodStock at this time. The woodstock components have a new way of registering the themes and it is too risky for an interim build to do this.
..\wb

Hi,
I use forms in my tabNavigator:
                <mx:TabNavigator id="tabNavigator"
                                  creationPolicy="all"
                                  styleName="myTabStyle"
                                  click="selectProfile()"
                                  >
                     <mx:Form id="A" label="A" name="very blue" hideEffect="{hideEffect}"  showEffect="{showEffect}" visible="false" >
                         <mx:Label text="Point" />
                         <mx:NumericStepper id="PointA" name="PointA"  minimum="0" maximum="120" styleName="numStepper" color="white" />   
                     </mx:Form>
             </mx:TabNavigator>
This is how I access the form and add values to my UI controls:
                        //find child controls dynamically
                        var formObj:Object = tabNavigator.getChildAt(i);
                        var formPoint:Object = formObj.getChildByName("Point" + "A");
                        formPoint.value = 55;
I hope this can help put you towards the right direction. This was not easy and tabNavigator is not my friend.

Similar Messages

  • Can the "ADD-A-NEW-TAB" button be reconfigured to be adjacent to existing tabs (like it used to be)? I am a left-handed tablet user who finds it's position on the far right side of screen very inconvenient.

    In previous version of Firefox, the "add-a-new-tab" button has been located to the right of any existing tabs. In the latest version it's been moved to the far right of the screen. In tablet mode, this is too far to reach conveniently for a left-hander. I cannot find any controls to re-configure it to the way it used to be and I can't "drag" it to where I want it. Is there a way to relocate it?

    Thanks. I don't know why it wouldn't just go back there when I tried putting it back? I didn't change anything, so I assumed the new "default" was over on the left. Glad it was a simple solution after all.

  • Dynamically add Children Link Element

    Hi,
    I'm trying to dynamically add a children element, a link, but the action binding refuses to work ...
    I've created a custom jsf component, that does nothing at all.
    For example, one would use it like:
    <my:nothing></my:nothing>So my UI class would have the following methods:
    public void encodeBegin(FacesContext context) throws IOException {
    public void encodeEnd(FacesContext context) throws IOException {
    }The tld file is created, the tag class is working. All the component is working properly.
    Now I want to add a link as a child component, but I wat to do it programatically, so I changed the encodeBegin method of my custom ui class:
    import javax.faces.el.ValueBinding;
    import com.sun.faces.util.Util;
    import javax.faces.el.MethodBinding;
    import javax.faces.component.UICommand;
    import javax.faces.component.html.HtmlCommandLink;
    import com.sun.faces.taglib.html_basic.CommandLinkTag;
    public void encodeBegin(FacesContext context) throws IOException {
              String myLinkId = "idMyLink";
              String myLinkValue = "myLink:Value";
              String myLinkStyle = "color:green;";
              String myLinkAction = "backup";
              HtmlCommandLink myLink = new HtmlCommandLink();
              myLink.setParent(this);
              myLink.setId( myLinkId );
              if (CommandLinkTag.isValueReference( myLinkValue )) {
                   ValueBinding vb = Util.getValueBinding( myLinkValue );
                   myLink.setValueBinding("value", vb);
              } else {
                   myLink.setValue( myLinkValue );
              if (CommandLinkTag.isValueReference( myLinkStyle )) {
                   ValueBinding vb = Util.getValueBinding( myLinkStyle );
                   myLink.setValueBinding("style", vb);
              } else {
                   myLink.setStyle( myLinkStyle );
              if(myLinkAction!=null) {
                   if (CommandLinkTag.isValueReference( myLinkAction )) {
                        System.err.println("Id="+myLinkId+":TRUE:getAccao:isValueReference:"+myLinkAction);
                        MethodBinding vb = getFacesContext().getApplication().createMethodBinding(myLinkAction, null);
                        myLink.setAction(vb);
                   } else {
                        System.err.println("Id="+myLinkId+":FALSE:getAccao:isValueReference:"+myLinkAction);
                        final String outcome = cNfo.getAccao();
                        MethodBinding vb = Util.createConstantMethodBinding( myLinkAction );
                        myLink.setAction(vb);
              myLink.encodeBegin(getFacesContext());
              myLink.encodeEnd(getFacesContext());
    }This seems to work, but not quite ... the link appears as expected, the value references for value and style are correctly passed, but the action doesn't work at all.
    For example if I change to:
    String myLinkValue = "#{mybean.linkText}";And I have the following method created on my managed bean:
         public String getLinkText() {
              return "This is myLink Text!";
         }Is successfully calls and retrieves the value from the method. Same happens to the style property.
    Now for the action, if I change to:
    String myLinkAction = "#{mybean.doMyLinkAction}";And I have the following method created on my managed bean:
         public String doMyLinkAction() {
              return "backup";
         }The result is nothing ... I mean the method is not called at all. The "backup" is properly defined on my "faces-config.xml":
       <navigation-rule>
          <from-view-id>/testPage.jsp</from-view-id>
          <navigation-case>
             <from-outcome>yes</from-outcome>
             <to-view-id>/yes.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
             <from-outcome>no</from-outcome>
             <to-view-id>/no.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
             <from-outcome>backup</from-outcome>
             <to-view-id>/backup.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>If I create the link manually on the web page:
    <h:commandLink id="myLinkManual" value="Manually Created Link" style="" action="#{mybean.doMyLinkAction}"/>It does work (the backup.jsp page is shown), so the methods are properly configured, only the action binding does not work.
    Wether I use a string "backup" or a reference "#{mybean.doMyLinkAction}" I cannot make it work.
    On the console I get the following results, for each value I test (string "backup" or reference "#{mybean.doMyLinkAction}"):
    Id=idMyLink:TRUE:getAccao:isValueReference:backup
    Id=idMyLink:FALSE:getAccao:isValueReference:#{mybean.doMyLinkAction}So the "if (CommandLinkTag.isValueReference( myLinkAction )) {" is working properly ... that just leaves me with the action method binding instructions ...
    Why don't they work?
    Any Help Appreciated ... Thanks in Advance!

    c'mon guys ... can anyone test this and help me out?
    Pleeeeeease ... I'm really needing this working out.
    Thanks

  • Unable to add content to Tab Panel when set in Master

    I am using the trial version at this time.... and want to confirm whether this is a bug or a purposeful limitation of the trial version beofre I consider buying.
    So I created a master page with a tabbed panel. However for each individual page I would like the tabbed panel to have different content within it. It appears that I cannot edit/add the tabbed panel in an indidual page when it is set in the master page. This is a huge issue.... as I have 10 pages that need the same tabbed panel, but with different content within each tab. Getting over my frustration, I went looking for a template creation..... there is no option to make and apply templates (which is sort of what the master is anyhow).
    This is a problem because, for instance... what if my client wants another tab in the tab panel.... without the master working per above.... I'm going to have to go in and change each of them individually.
    Have other people had this problem? Is it because of the trial version? Is adobe aware of this? Is there a fix? Or some detail I have overlooked?
    Thanks all,
    burnor

    Thanks I'll do that for the next 10-15 pages for now.... but what would really be awesome is if adobe would add the functionality I'm describing. Thus added it to the idea board....

  • I cannot open more than 1 Tab per window. The "+" does not work as well as the item "New Tab" from the File drop-down menu. What shall I do ?

    I have just removed FireFox and reinstalled it again on my Mac Book PRO.
    When I open FIreFox I canNOT open more than 1 TAB.
    I click on the "+"on the top line of the window. It should open another TAB but id does NOT.
    I click on the File item in the top menu bar. A drop-down menu pops up. I click on "New Tab" and nothing happens.
    How can I get more than 1 Tab on the same window ?
    This feature works with Safari !
    Thank you so much.
    Best regards

    We have seen reports about a Community Toolbar extension causing this issue with not being able to open a new tab.
    So if you have such a toolbar then start with disabling it.
    *Tools > Add-ons > Extensions
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Dynamically Adding/Editing/Deleting Tabs on Tabbed Panels

    I am using the tabbed panels and need to know how to
    dynamically create a new tab with javascript with some content
    inside ( and switch to it ). Also, I need to figure out how I can
    delete tabs at "runtime"? I have tried many things to do this, but
    everytime, it has been failing. I need a functions just like this:
    addTab(title, innerHTMLcontent);
    deleteTab(currIndex);
    Also, I think all of the Spry Widgets should have an easy way
    to dynamically change content.

    Hi,
    here is the js file. I am also attaching a sample (I named it
    as Spry.Widget.ExtendedTabbedPanels, may be you could change it).
    Let me know if you face any issues.
    ===================START-JS
    FILE==============================
    var Spry; if (!Spry) Spry = {}; if (!Spry.Widget) Spry.Widget
    = {};
    Spry.Widget.ExtendedTabbedPanels = function(element, opts) {
    Spry.Widget.TabbedPanels.call(this, element, opts);
    Spry.Widget.ExtendedTabbedPanels.prototype = new
    Spry.Widget.TabbedPanels();
    Spry.Widget.ExtendedTabbedPanels.prototype.constructor =
    Spry.Widget.ExtendedTabbedPanels;
    Spry.Widget.ExtendedTabbedPanels.prototype.addTab = function
    (tabname, tabcontent, position) {
    var tabs = this.getTabs();
    if((!position && position != 0)|| position >
    tabs.length)
    position = tabs.length;
    var newtab = tabs[tabs.length - 1].cloneNode(true);
    this.setElementNodeValue(newtab, tabname);
    this.getTabGroup().insertBefore(newtab, tabs[position]);
    var tabContents = this.getContentPanels();
    var newContentPanel = tabContents[tabContents.length -
    1].cloneNode(false);
    newContentPanel.innerHTML = tabcontent;
    this.getContentPanelGroup().insertBefore(newContentPanel,
    tabContents[position]);
    this.addPanelEventListeners(newtab, newContentPanel);
    this.showPanel(position);
    Spry.Widget.ExtendedTabbedPanels.prototype.removeTab =
    function(tabindex) {
    var tabs = this.getTabs();
    if((tabs.length == 1) || (!tabindex && tabindex !=
    0) || tabindex >= tabs.length)
    return false;
    var tabToRemove = tabs[tabindex];
    this.getTabGroup().removeChild(tabToRemove);
    var contentPanelToRemove =
    this.getContentPanels()[tabindex];
    this.getContentPanelGroup().removeChild(contentPanelToRemove);
    this.removePanelEventListeners(tabToRemove,
    contentPanelToRemove);
    if(this.getCurrentTabIndex() == tabindex) {
    if(this.getTabs().length <= tabindex)
    this.showPanel(this.getTabs().length - 1);
    else
    this.showPanel(tabindex);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener =
    function(element, eventType, handler, capture)
    try
    if (element.removeEventListener)
    element.removeEventListener(eventType, handler, capture);
    else if (element.detachEvent)
    element.detachEvent("on" + eventType, handler);
    catch (e) {}
    Spry.Widget.ExtendedTabbedPanels.prototype.removePanelEventListeners
    = function(tab, panel)
    var self = this;
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(tab,
    "click", function(e) { return self.onTabClick(e, tab); }, false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(tab,
    "mouseover", function(e) { return self.onTabMouseOver(e, tab); },
    false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(tab,
    "mouseout", function(e) { return self.onTabMouseOut(e, tab); },
    false);
    if (this.enableKeyboardNavigation)
    // XXX: IE doesn't allow the setting of tabindex
    dynamically. This means we can't
    // rely on adding the tabindex attribute if it is missing to
    enable keyboard navigation
    // by default.
    // Find the first element within the tab container that has
    a tabindex or the first
    // anchor tag.
    var tabIndexEle = null;
    var tabAnchorEle = null;
    this.preorderTraversal(tab, function(node) {
    if (node.nodeType == 1 /* NODE.ELEMENT_NODE */)
    var tabIndexAttr = tab.attributes.getNamedItem("tabindex");
    if (tabIndexAttr)
    tabIndexEle = node;
    return true;
    if (!tabAnchorEle && node.nodeName.toLowerCase() ==
    "a")
    tabAnchorEle = node;
    return false;
    if (tabIndexEle)
    this.focusElement = tabIndexEle;
    else if (tabAnchorEle)
    this.focusElement = tabAnchorEle;
    if (this.focusElement)
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(this.focusElement,
    "focus", function(e) { return self.onTabFocus(e, tab); }, false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(this.focusElement,
    "blur", function(e) { return self.onTabBlur(e, tab); }, false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(this.focusElement,
    "keydown", function(e) { return self.onTabKeyDown(e, tab); },
    false);
    Spry.Widget.ExtendedTabbedPanels.prototype.setElementNodeValue
    = function(element, nodevalue) {
    var currentElement = element;
    var tmpElement = this.getElementChildren(element);
    while(tmpElement.length != 0) {
    currentElement = tmpElement[0];
    tmpElement = this.getElementChildren(tmpElement[0]);
    currentElement.innerHTML = nodevalue;
    ====================END JS
    FILE==================================
    ===================SAMPLE
    TEST===================================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryTabbedPanels.css"
    rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryExtendedTabbedPanels.js"
    type="text/javascript"></script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
    <div class="TabbedPanelsTabGroup">
    <span class="TabbedPanelsTab"
    tabindex="0"><b>Tab 1</b></span>
    <span class="TabbedPanelsTab" tabindex="0">Tab
    2</span>
    </div>
    <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">Content 1</div>
    <div class="TabbedPanelsContent">Content 2</div>
    </div>
    </div>
    <input type="text" id="tabname" />
    <input type="text" id="tabcontent" />
    <input type="text" id="position" />
    <input type="button" value="add tab" onclick="add();"
    />
    <input type="button" value="delete tab"
    onclick="TabbedPanels1.removeTab(parseInt(document.getElementById('position').value));"
    />
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new
    Spry.Widget.ExtendedTabbedPanels("TabbedPanels1");
    function add() {
    var tabTitle = document.getElementById("tabname").value;
    var tabcontent = document.getElementById("tabcontent").value;
    var position = document.getElementById("position").value;
    TabbedPanels1.addTab(tabTitle, tabcontent,
    parseInt(position));
    //-->
    </script>
    </body>
    </html>
    ===================SAMPLE TEST
    END=======================

  • Add another custom tab to sales crmd_bus2000115

    Hello Gurus,
    I cannot add another custom tab because it overwrites the old one. I've tried the transaction crmv_ssc but i think doesn't serves.
    Any suggestions.
    Thanks a lot.

    Hi Pablo,
    You shoudl be able to do it using Screen sequence control. I hope you are aware of possible issues of using CRMV_SSC.
    Refer to the thread.
    Re: Change of tabs in sales document layout
    Thanks,
    Surendar

  • Dynamically Add and Remove Train Stop with version 11.1.2.3

    I have found examples with prior versions, such as http://adfpractice-fedor.blogspot.com/2011/12/dynamic-adf-train-showing-train-stops.html.
    But, they do not work in 11.1.2.3.
    It appears that the APIs have changed considerably.
    Please advise as to a similiar example that is based on the API model for 11.1.2.3
    Thanks in advance for your help.

    Hi,
    I have a requirement to dynamically add different train stops at runtime, which are not part of the task flow at design time. I would like to build the train at runtime based on various conditions that occur. Is this possible?
    Train stops can only be removed from the train model before the first view renders, which means during task flow initialization. To a later point you cannot remove but hide stops. The train model is created upon task flow initialization too and any train stop that is not part of the model virtually doesn't exist. In your case I think creating a custom train model from ground up and using this with the train is the way to go. The default task flow metadata based implementation doesn't seem to do what you need it for. Alternatively, if you can predict the maximum number of train stops, you can design them at design time and then remove those you don't need at runtime using a HashMap reference in the train stop configuration and check the HashMap values upon initialization.
    Here's a write up on trains I did in the past: http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html
    More documents you find on ADF Code Corner http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html (just search for train)
    Frank

  • Dynamically add a button field to the menu structure, similar to Yahoo Mail

    Hi there,
    Using Jsp and database is MYSQL.
    I need to create a menu structure dynamically.I have a tab in Category Tags and with drop down and a option Add a NewCategory Similar to YahooMail, Contact Adding page
    when i click on Add a NewCategory,i need a page asks for Category Name,and drop down listing all menu structure asking for which parent Category i want to add this new Category. After submission the menu should be added Similiar as a New Category will be added to Category list of Yahoo Mail Contact list, Same should happen to to sub level Categories also.
    For example
    Category Tags----> this is Vertical menu
    -->Web Related---->Design Web Page ---->This Horizontal menu
    --->Add a New Cagetory
    I should a drop down as Add a New Cagetory . when i click on that a new page should be like
    Type New Category Name text box
    Parent menu listbox ..consists all the menu structure
    when i give a Category Name and select a particular menu from list box that menu should add under that parent menu. Suppose the user clicks on Web Related and gave Category name as "Design Web Page " then the menu structure
    shold b like this..
    Category Tags----> this is Vertical menu
    -->Web Related---->Design Web Page ---->This Horizontal menu
    --->Add a New Cagetory
    Please help to create this dynamic menu sturture in JSP page
    Thanks
    Vishwaradhya

    Hi,
    I do apolozie for my big explanation and you couldn't understand what i want.
    I want to create a Dynamic Menu Structure.
    Structure will be like below
    Category tag --- it will be my main tab
    Web Related---- It is my Category
    ----->Web Calculator--- it will be Sub Item of Category Web Related
    Add a New Category ---> On click of this option, i have to provide user a window to enter a new category.
    And this i have to do using JSP, Could you please guide me through....
    Thanks
    Vishwaradhya

  • Jabber 9.6 Cannot Currently Add the Contacts

    I'm running Jabber for Windows 9.6 with Jabber Cloud (formerly WebEx Connect).  I have all my internal users in addition to a large number of external contacts including Cisco employees and some of my clients.  Today I was adding 2 contacts at another client.  The first contact was added without issue.  When I tried to add the second contact, I received the error message:
    "The system cannot currently add the contacts.  Try again later or contact your system administrator."
    We haven't changed anything on our end but every time I try to add this contact, I get this error.

    Can you try clearing Jabber cache?
    Close and exit out of Jabber (if still running)
    Clear the Local Jabber cache. This data is found in the following two directories:
    Win 7:
    %userprofile%\AppData\Local\Cisco\Unified Communications\Jabber
    %userprofile%\AppData\Roaming\Cisco\Unified Communications\Jabber
    Win XP:
    %userprofile%\Local Settings\Application Data\Cisco\Unified Communications\Jabber

  • How to add a new tab for the project?

    Dear All Experts,
        Could you tell me how to add a new tab for the project?
        Pls refer to the screenshot as below:
    Thanks!
    Xinling Zhang

    Hi,
        The new tab in cj20n , and the new tab can only be displayed in the highed level.Pls refer to below
        And in cj02, there is no this tab also in the wbs detailed screen,
    Thanks!
    Xinling

  • Add a new tab in iTunes main window.

    Hi there.
    I want to add a new 'Tab' in the iTunes menu bar, to show video projects done for clients.
    I'd like to categorize it as Work, different from Movies and Home Videos.
    Is this possible? If so, how?
    Thanks!

    Hello,
    Adding a customized category is not possible unfortunately.

  • Add a new tab to General data in XD01

    Hi,
    I want to add a new tab to General data in XD01. I came across some BADI's(CUSTOMER_ADD_DATA, CUSTOMER_ADD_DATA_CS) which can be used to add pushbuttons(like General Data, Sales Area) and inside that we were able to add tabs. But i need to add a new tab inside General Data Button.
    Is there any Screen Exit to do this?
    Thanks,
    Savitha

    Hi,
    Try using BDTs. (Business Data Toolset)
    Check the area menu BUPT.
    Regards,
    Sharin

  • Add an extra :Tab" on the Purchase Order's ITEM DETAIL level.

    Hi:
    Can anyone please tell me how I go about to add an additional "TAB" on the Item Detail level of a Purchase Order...??
    Thanks.
    W.

    It is not possible to add extra tab by configuration .you have to use user exit/BADI to get this .
    user exit :MM06E005 
    BADI : ME_PROCESS_PO_CUST
    consult with your abaper for developemnt

  • How to add a new Tab in XD02 Transaction

    Hi all,
    How to add a new Tab in XD02 Transaction. please explain step by step.
    Thanks

    Hi Anil
    Goto T code OBD2 select your account type for which you want new tab. Click on details button above.
    On next screen you can see "Field status" box.
    Select (double click) on the view (i.e. General data or CC data or Sales data) in which you want to add new tab.
    Again on next screen double click on the field present under "Select group" box.
    On next screen go ahead with your settings, i.e. which fields you want and how.
    Save the changes. Goto XD01 and test the same.
    try and revert

Maybe you are looking for

  • Loading Custom CD-Rs into iTune Playlists

    I have about 20 custom music disks that I would like to enter into separate Playlists in my iTunes. What is the easiest method to keep each disk separate in the library and enter them into its own playlist. The problem I have is that if I import two

  • Images with rounded edges

    Hello, I want to create my images with rouned corners rather than being a boring square shape. I have seen this affect on other websites. Can anyone tell me step by step how a modify a square image to appear maybe in a circle or a rounded corner rect

  • Credit Limit Change in Customer Master

    Hi, I have a customer in 4 credit control areas. Details are as follows:       Each limit in each credit control area is 10Milions....total limit each 50Milons When i am making change in one CCA through FD32 i.e from 10 Milion to 1 milion Getting bel

  • Materials for modifying Oracle Standard Report

    Hi, I need to modify Oracle Standard Reports. Is their any material or documentation how to do it...? If some one could give me the link or documentation that would be really great full! Thank you! -Preetha.

  • Cannot activate up my iPad Air on a wifi network. Do not have access to a computer for iTunes. How can I activate it?

    I cannot activate my iPad Air over wifi. I do not have access to a computer for itunes. How do I set it up?