Tree Component within Accordion Component

Hello all!
I've done a navigation scheme that uses both the accordion
and tree components. The data being gathered is from an XML file.
The only problem i'm having is getting the tree components to
display the data that they're being provided with. I did traces and
I found out that they are getting the data...can anyone take a look
at the FLA and see what's going wrong?
http://www.jake3p0.com/downloads/accordionTreeNav.zip
I'm using Flash 8

No one has ever tried this? I've posted this problem on 3
different forums....flashkit, gotoandlearn and adobe....none have
any responses that help!

Similar Messages

  • Tree expand problem with Accordion Component

    While using Accordion component with creationPolicy="all", tree components which are placed in accordion's different panels, will not expanded at creationcomplete.
    Trees are created perfectly but not expand its level at initial creationComplete time.
    If I placed tree in regular panel and executed, tree levels are perfectly expaned.
    Expand level code is called at creationComplete of Tree.
    Steve Roger.

    i got my mistake.
    I am using callLater(). Now its working perfect.

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • Help - How do I reference a dataprovider for a custom itemrender within a component ?

    I have a custom component that references a cutsom itemrenderer.
    In the item renderer I have
    <s:ComboBox
      id="ddl"
      itemCreationPolicy="immediate"
      includeIn="normal"
      width="100"
      open="ddl.skin['dropDown'].owner = this"
      labelField="ACCT_TYPE_R_NM"
      selectedItem="{data.ACCT_TYPE_NM}"
      dataProvider="{parentDocument.acctTypeAc}">
    But beacuse this item renderer resides within the component the reference to parentDocument is the Module that the component is in. The data however is in the component. As a result the item renderer is blank. I have tried outerDocument and that will not compile.
    Does anyone know what I should use instead of parentDocument. Moving the data to the module is not an option as the component is used within multiple modules.

    Have you been able to solve this problem?
    Thanks
    Bilal Ahmad

  • Flex 4 - insert combobox or other interactive component within RichEditableText

    As part of my massive quest to convert a large application from AS2 to Flex AS3, I am going to need to insert a UI component within a RichEditableText component.
    Is that actually possible?
    In AS2, I had created each word of a paragraph as a separate textField and then positioned them all together, inserting input fields and combobox components as required.... however... project requirements means I have to try and insert components within full paragraphs, if possible... Dynamically and in actionscript.  I'm not sure where to start attempting this... if anyone has any ideas which might help, I'd be truly grateful !!!
    This is a question paragraph.  The first answer to this paragraph question is [combobox] and the second might be [combobox] so select your answers and press the check button.
    Thanks.

    Have you discovered TinyTLF yet? I believe it will enable you to create the sort of controls you're looking for. http://guyinthechair.com/

  • Accordion component property .enabled has no function???

    Hi, the subject pretty much sums it up. I created an
    accordion component, but setting its .enabled property - which
    according to the component help it has (inherited from UIComponent
    class) - has no effect!

    You can also check for problems with the places.sqlite database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file

  • Text in the title bar of an Accordion component

    Hi -
    I have an accordion component on my swf. Its working right
    but the text in the title bars (where I click to flip the accordion
    pages) is coming up bold when I want it normal. How do I change
    this?
    Thanks.
    D2

    If you are using Windows, you do it through the Control Panel tool for customizing your desktop display. If you are using some other system, I don't know. You can't do it from your Java program.

  • Custom skin for accordion component

    Hi,
    I need to create an accordion component that looks like following image:
    I tried this tutorial: http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-fl ex-4/
    I am able to create the background gradient with help of above tutorial.
    I have 3 questions now:
    How to style the header text?
    How to add a link on the active header?
    How to add rounded corner for closed state of last heading only?
    Any help on this is appreciated.
    Best Regards,
    Alok Jain

    You have to download flexlib.swc file.
    Just create custom itemrenderer
    <CanvasButtonAccordionHeader
        xmlns="flexlib.containers.accordionClasses.*"
        xmlns:mx="http://www.adobe.com/2006/mxml"
      mouseChildren="true"
        verticalScrollPolicy="off" horizontalScrollPolicy="off"
         >
        <mx:Script>
             YOUR SCRIPT HERE
            ]]>
        </mx:Script>
       [YOU CAN CREATE A LINK BUTTON HERE]
    </CanvasButtonAccordionHeader>

  • JTabbedPane switching from within added component

    Hey guys,
    Anyone know how/if its possible to change between JTabbedPanes
    by using a button within a component added to one of the Panes?
    Class A has a JtabbedPane in it
    and Class B extends JPanel and is added to the TabbedPane
    as a Component
    Is there anyway to have a buttonclick in class b to switch to
    another tab in the parent class?

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AddingATab
        public static void main(String[] args)
            BasicGUI gui = new BasicGUI();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(gui.getUIChanger(), "North");
            f.getContentPane().add(gui.getMainUI());
            f.setSize(400,400);
            f.setVisible(true);
    class BasicGUI
        JTabbedPane tabbedPane;
        public BasicGUI()
            tabbedPane = new JTabbedPane();
        public JTabbedPane getMainUI()
            JPanel
                redPanel = new JPanel(),
                bluePanel = new JPanel();
            redPanel.setBackground(Color.red);
            bluePanel.setBackground(Color.blue);
            tabbedPane.addTab("red", redPanel);
            tabbedPane.addTab("blue", bluePanel);
            return tabbedPane;
        public JPanel getUIChanger()
            JButton add = new JButton("add tab");
            add.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    String nextTab = "tab " + String.valueOf(tabbedPane.getTabCount()+1);
                    tabbedPane.addTab(nextTab, new AddOnPanel(tabbedPane));
            JPanel panel = new JPanel();
            panel.add(add);
            return panel;
    class AddOnPanel extends JPanel
        JTabbedPane tabbedPane;
        public AddOnPanel(JTabbedPane tp)
            tabbedPane = tp;
            addNavButtons();
        private void addNavButtons()
            int numberTabs = tabbedPane.getTabCount();
            JButton[] buttons = new JButton[numberTabs];
            ActionListener l = new ActionListener()
                public void actionPerformed(ActionEvent e)
                    JButton button = (JButton)e.getSource();
                    int index = tabbedPane.indexOfTab(button.getActionCommand());
                    tabbedPane.setSelectedIndex(index);
            for(int i = 0; i < buttons.length; i++)
                String ac = tabbedPane.getTitleAt(i);
                buttons[i] = new JButton(ac);
                buttons.setActionCommand(ac);
    buttons[i].addActionListener(l);
    add(buttons[i]);

  • I can't call up a URL from within a component?

    Hi all. Hope you can help.
    I have a flash site that contains a component. The component
    is for a scroll bar that shows image slices of my work. The image
    slices are buttons that when clicked should call up a seperate web
    (URL) window to display the work. However when clicked the button
    doesn't work. The button im using is on (release) {getURL
    ("work.htm")} this is fom the browser/network submenu in the global
    functions menu. I think that I should be looking in the components
    menu but have no idea what function or code to use.
    Any advice would be massively helpful.
    Cheers
    Rob

    The images are added within the component as buttons. I don't
    know how to check wether the button is accessable or not? IF you
    could advise on this that would be really good. I don't think its
    tracing anything.
    Basically just want it to open a javascript URL window.
    Cheers in advance
    Rob

  • Creating form element from within a component

    Hi all,
    I am trying to create a form element within a component
    function which is then called from a .cfm page which has the cfform
    tags. I keep getting a context validation error for the form
    element tag. Here is some sample code:
    <cfcomponent name="yourComponent">
    <cffunction name="createTag" returntype="string"
    access="public">
    <cfsavecontent variable="returnContent">
    <cfselect name="thisSelect">
    <option value="0">Value 1</option>
    </cfselect>
    </cfsaveconten>
    <cfreturn returnContent>
    </cffunction>
    </cfcomponent>
    And in the .cfm page:
    <cfform>
    <cfinvoke component="yourComponent" method="createTag"
    returnVariable="returnContent"/>
    <cfoutput>#returnContent#</cfoutput>
    </cfform>
    The error occurs in the function and it says the cfselect
    must be within a cfform. I tried the function without the save
    content and just set the output="yes" but the same error occurs.
    Any help appreciated in how to get around this. Just putting
    the code in the .cfm is not an option for this.
    Any help appreciated.
    Jim

    quote:
    Originally posted by:
    jim1234
    Thanks for the reply. Yes, that works. So it looks like it
    has to do with the function call.
    After some further investigation, I found out that a regular
    <select> works, it's just the <cfselect> that does not.
    ColdFusion wants it directly within the <cfform> tag.
    Something does not make sense. If the cfsavecontent worked in
    the cfm file, there is no reason for it not to work in a cfc.
    If you want to persue this, the next troubleshooting step is
    to copy the function to your cfm file and see if it works. I
    suspect that you are trying something simple as a proof of concept.

  • Resizing Accordian based on the content in each component within in it.

    Hi,
    I wanted to know whether is there a way to resize Accordion
    component based on the content in the present tab.In my Accordion I
    am using four Canvas as its four children.The data in each of the
    canvas changes based on the Accordian tab selected. I want to
    dynamically resize the entire accordion based on the content in the
    canvas for that tab.
    In short the height of the Accordion need to change
    dynamically based on the tab selected. I have tried using the
    resizeToContent property but this didn't solve the problem.
    Thanks,
    amar.

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

  • PartialTrigger point to Component within JSF Fragment

    i like know if it is possible to have component within mainPage.jspx with partialTrigger pointing to component within a JSF Fragment which is included in mainPage.jspx.
    A use case for it could be, for example, i have a tabbed panel with 2 tabs, each tab contains a JSF Fargment per jsp:include, in the first tab there is a table with search result and the second tab should show the detaisl of the selected table item by double-click or context menu of the item.
    Thanks in advanced.

    Hi,
    since you don't mention af:region, I assume you don't use it. In this case, have a look here: http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-how-to-issue-a-ppr-event-from-a-fsubview-and-how-to-ppr-of-subviews/
    Frank

  • A component within JTabbedPane with overlay layout

    Hi, I use the following solution to have a component within the upper right corner of the JTabbedPane: [http://forums.sun.com/thread.jspa?forumID=57&threadID=636289&start=2|http://forums.sun.com/thread.jspa?forumID=57&threadID=636289&start=2] . It works great, but when I'm resizing a window with the JTabbedPane with the JTabbedPane.WRAP_TAB_LAYOUT and width of all of the tabs is higher than size of the window the tabs are wrapped. But it should be wrapped when width of all tabs + width of the added component is higher than the size. I have no idea how to do this. Any ideas?
    Please see the screenshot: [http://img150.imageshack.us/img150/5629/btn.png|http://img150.imageshack.us/img150/5629/btn.png]

    Just a quick idea:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    class TabbedPaneTest {
      public JComponent makeUI() {
        UIManager.put("TabbedPane.tabAreaInsets",
                      new InsetsUIResource(6, 2, 0, 60));
        JSplitPane sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
        sp.setTopComponent(makeTabPanel(new JTabbedPane()));
        sp.setBottomComponent(makeTabPanel(new ClippedTitleTabbedPane()));
        sp.setPreferredSize(new Dimension(320, 240));
        return sp;
      private JPanel makeTabPanel(final JTabbedPane tab) {
        tab.addTab("asdfasd", new JLabel("456746"));
        tab.addTab("1234123", new JScrollPane(new JTree()));
        tab.addTab("6780969", new JLabel("zxcvzxc"));
        tab.setAlignmentX(1.0f);
        tab.setAlignmentY(0.0f);
        JButton b = new JButton(new AbstractAction("add") {
          @Override public void actionPerformed(ActionEvent e) {
            tab.addTab("test", new JScrollPane(new JTree()));
        b.setAlignmentX(1.0f);
        b.setAlignmentY(0.0f);
        JPanel p = new JPanel();
        p.setLayout(new OverlayLayout(p));
        p.add(b);
        p.add(tab);
        return p;
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          @Override public void run() { createAndShowGUI(); }
      public static void createAndShowGUI() {
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.getContentPane().add(new TabbedPaneTest().makeUI());
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    class ClippedTitleTabbedPane extends JTabbedPane {
      //XXX Nimbus NPE
      Insets tabInsets = UIManager.getInsets("TabbedPane.tabInsets");
      Insets tabAreaInsets = UIManager.getInsets("TabbedPane.tabAreaInsets");
      public ClippedTitleTabbedPane() {
        super(JTabbedPane.TOP);
        setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        addComponentListener(new ComponentAdapter() {
          @Override public void componentResized(ComponentEvent e) {
            initTabWidth();
      @Override
      public void insertTab(String title, Icon icon, Component component,
                            String tip, int index) {
        super.insertTab(title, icon, component, tip==null?title:tip, index);
        JLabel label = new JLabel(title, JLabel.CENTER);
        Dimension dim = label.getPreferredSize();
        label.setPreferredSize(
            new Dimension(0, dim.height+tabInsets.top+tabInsets.bottom));
        setTabComponentAt(index, label);
        initTabWidth();
      private void initTabWidth() {
        Insets insets = getInsets();
        int areaWidth = getWidth() - tabAreaInsets.left - tabAreaInsets.right
                                   - insets.left        - insets.right;
        int tabCount = getTabCount();
        int tabWidth = 0;
        switch(getTabPlacement()) {
          case LEFT: case RIGHT:
          tabWidth = areaWidth/4;
          break;
          case BOTTOM: case TOP: default:
          tabWidth = areaWidth/tabCount;
        int gap = areaWidth - (tabWidth * tabCount);
        if(tabWidth>80) {
          tabWidth = 80;
          gap = 0;
        tabWidth = tabWidth - tabInsets.left - tabInsets.right - 3;
        for(int i=0;i<tabCount;i++) {
          JLabel l = (JLabel)getTabComponentAt(i);
          if(l==null) break;
          int h = l.getPreferredSize().height;
          l.setPreferredSize(new Dimension(tabWidth+((gap>0)?1:0), h));
          gap--;
        revalidate();
    }

  • ADF Faces + accordion component

    Hi all,
    Has anyone out there used any 3rd party "accordion" component with ADF Faces? Examples of one's that I've found but not tried:
    Google Web Toolkit (GWT) StackPanel widget - might be hard to integrate with JSF
    MyFaces accordionPanel - pretty nice, but it's still in the "sandbox" project
    IceFaces has an in-development accordion - IceFaces doesn't play nice with ADF Faces components on the same page due to a special renderer
    Spry Accordion from Adobe - similar comments to GWT.
    Some examples of what I mean:
    The Mail/Tasks/Contacts item here: http://code.google.com/webtoolkit/documentation/examples/desktopclone/demo.html
    http://archive.dojotoolkit.org/nightly/tests/widget/test_AccordionContainer.html
    http://www.irian.at/myfaces-sandbox/accordionPanel.jsf
    The closest thing in ADF Faces is the af:showOnePanel, which is pretty close, but not exactly what I'm looking for. Perhaps with some skinning, I could get it to look different (no +/- in the little triangle, etc). An update... thanks to BUG 5682799, we are not able to get rid of the little hide/disclose (+/-) widget - the skin selector for that item is ignored.
    Thanks for any insight.
    John

    Hi John,
    Bug 5682799 has been fixed in JDeveloper 10.1.3.3
    If you need a one-off patch for a prior release of JDev, please contact Support.
    Regards,
    Didier.

Maybe you are looking for