PrimeFaces tree cannot collapse and extend

Hi all,
I try to follow the instruction in http://www.primefaces.org/showcase/ui/treeSelectionSingle.jsf
to create a tree.
I am able to create the tree but it just cannot collapse and expand.
Any idea?

You probably want to ask the question in either the PrimeFaces Forum at http://forum.primefaces.org/, or review their documentation at http://www.primefaces.org/documentation.html

Similar Messages

  • Website file tree - cannot collapse folders

    Viewing the local pages in my site, when I try to collapse
    folders, other folders mysteriously expand. So, I click on one +
    sign and another folder changes from - to + (expanding). This
    happens in both the panel view of the site folders as well as in
    the large expanded view -- the one that looks a bit like Explorer
    in Windows.
    This does not happen every time, but most times. So, for
    example, I'll collapse a first folder and maybe a second one, and
    when I try to collapse a third folder it does not collapse -- and,
    the first two folders expand. This is in DW 8.
    I assume things should not be working this way. Any ideas?
    Thanks.

    I've been looking for this solution for a while, and as i had
    65 sites that this was slowly affecting, i'm going to post my
    solution, based on alan's recommendations.
    generally, the outline below creates a REG file that will
    remove all "Local Expanded Dir #" and "Remote Expanded Dir #"
    values, and reset the "Local Expanded Dirs" and "Remote Expanded
    Dirs" values to 0. and will do it for every site you have
    configured within dreamweaver (in my case it was 65 of them to
    fix). and it makes it easy to repeat the fix later when it gets
    corrupted again.
    1. open regedit, go to the key
    HKEY_CURRENT_USER\Software\Macromedia\Common\8\Sites and check out
    how many site folders you have listed (starts with 0). poke though
    the site folders, and make a note of the site that has the most
    "Local Expanded Dir #" or "Remote Expanded Dir #" folders - its the
    number of these entries you're after.
    2. create a .txt file, and add the following content:
    [HKEY_CURRENT_USER\Software\Macromedia\Common\8\Sites\-Site0]
    "Local Expanded Dir 0"=-
    "Local Expanded Dir 1"=-
    "Local Expanded Dir 2"=-
    "Local Expanded Dir 3"=-
    "Local Expanded Dir 4"=-
    "Local Expanded Dir 5"=-
    "Local Expanded Dir 6"=-
    "Local Expanded Dir 7"=-
    "Local Expanded Dir 8"=-
    "Local Expanded Dir 9"=-
    "Local Expanded Dir 10"=-
    "Local Expanded Dirs"=dword:00000000
    "Remote Expanded Dir 0"=-
    "Remote Expanded Dir 1"=-
    "Remote Expanded Dir 2"=-
    "Remote Expanded Dir 3"=-
    "Remote Expanded Dir 4"=-
    "Remote Expanded Dir 5"=-
    "Remote Expanded Dir 6"=-
    "Remote Expanded Dir 7"=-
    "Remote Expanded Dir 8"=-
    "Remote Expanded Dir 9"=-
    "Remote Expanded Dir 10"=-
    "Remote Expanded Dirs"=dword:00000000
    (blank line here)
    3. modify the code abot to include enough lines to cover your
    noted number of "Local Expanded Dir #" and "Remote Expanded Dir #"
    entries. just copy/paste the lines and change the numbers to match
    your needs.
    4. now select and copy all the lines in the file, and
    repeatly paste them at the end of the file, changing the HKEY site
    number (at the end of the KEY) after each paste, until you have
    created a group of lines for each site in your configuration. YOU
    MUST LEAVE A BLANK LINE AFTER EACH GROUPING - this tells regedit
    that a new KEY will be used, and won't work correctly if you don't
    leave them.
    5. At the top of the file, add this line for Windows 2000, XP
    and Vista users:
    Windows Registry Editor Version 5.00
    (blank line here)
    5. save the file, and rename the extension to ".reg".
    6. either double-click on the file to import it into the
    registry, or open REGEDIT and import the file directly.
    for my configuration, i created 100 lines for each of the
    LOCAL and REMOTE sets (for these values, more is okay, as it's
    telling the system to delete them, and if they don't exist, no big
    deal), and duplicated the entire group 65 times. BE SURE TO LEAVE
    BLANK LINES WHERE INDICATED.
    Makes for a very large REG file, but it cleaned out all the
    problems at once. when it becomes a problem later, i can just
    modify the file to include more site numbers, and fix it quickly
    again.
    alan, thanks for the fix - i didn't find anything remotely
    related during any google searches - just wasn't guessing the right
    keywords i guess - so i finally thought to check dreamweaver forums
    directly, and found it almost instantly.
    Hope this helps the next person.
    (edited to include references to blank lines - very critical
    to working correctly)

  • Handling event for Tree Control Collapse

    Hi,
    Can any one suggest how to handle an event for 'Tree Node Collapse' . I have checked with all the exised tree events.
    thanks,
    Venu

    Hi Venugopal,
        If you are doing tree control programmin then i can suggest you a approach for tree node collapse and expand.
    for doing this follow these steps.
    1. create a toolbar (use class cl_gui_toolbar), add a button and assign a FCODE to it.
    2. here you register the following the event for the toolbar.
    gs_event-eventid = cl_gui_toolbar=>m_id_function_selected.
    3. here you set the handler for the toolbar events
      SET HANDLER  gref_application->handle_function_selected
                FOR  gref_toolbar.
    4. now in your class for gref_application you write a definition and implementation.
    definition
    handle_function_selected FOR EVENT handle_function_selected OF cl_gui_toolbar IMPORTING fcode.
    implementation
    CASE fcode.
       when 'collapse'.
          CALL METHOD xref_tree->collapse_all_nodes.
    this method might change depending upon the class you use for creating the tree.
    i hope this will help you.
    in case of clarification do get back to me.
    regards,
    Kinshuk Saxena
    PS mark helpful answers

  • HT4259 I have an 802.11n base and extender and still cannot get a good signal 80-90 ft away . Why?

    I have an 802.11n base and extender and still cannot get a good signal 80-90 ft away . Why?

    Hardwire is always recommended because there is virtually no signal loss in a wire....at least up to 300 feet or so.
    Another advantage of using Ethernet cable...if you can...is that you can locate the AirPort Express where it is most needed.
    If it extends using wireless only, it pretty much needs to be located about half the distance from the main router and the general area that needs more coverage.
    I like to use WiFi Explorer since it displays SNR (Signal to Noise) readings, which are the best way to evaluate signal quality.
    Mac App Store - WiFi Explorer
    If the signal is varying constantly, something is causing it to do so....assuming that the AirPorts are functioning correctly.
    Cordless phones are a huge problem for wireless networks.  You want to try to figure out if the phones are causing a problem as a first troubleshooting step.
    That is why I suggested that you turn off the phones for an hour or two and watch the network to see how it behaves.  If the signal stops fluctuating....that is a good clue that the phones are interfering with the wireless signal.

  • Hierarchical Tree cannot populate

    Hi all senior and expert,
    Im new in oracle forms 10g and now im trying to develop system using hierarchical tree,but when im run for testing my tree cannot populate..Please help me...
    My program Units:
    PROCEDURE run_tree IS
    BEGIN
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    a varchar2(300):=' ';
    startmenu varchar2(100):=' ';
    node FTREE.NODE;
    state varchar2(100):=' ';
    cursor aa is
    select distinct menu_name from menu_master_user
    where nvl(FORM_NAME,' ') = ' '
    and user_key = :global.user_key
    and nvl(menu_name,' ') <> ' '
    and seq <> 0;
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('tree4');
    -- Check for the existence of the record group.
    rg_emps := Find_Group('menu');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    BEGIN
    select distinct menu_name into startmenu from menu_master_user
    where user_key = :global.user_key
    and seq=0;
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
         MESSAGE ('This user has no accessible item setup in the user access module,Please report to CICT for accessible...');
         MESSAGE ('This user has no accessible item setup in the user access module,Please report to CICT for accessible...');
         raise form_trigger_failure;
    end ;
    rg_emps := Create_Group_From_Query('menu',
    'select 1,level,menu_name,:global.drive||icon_file,form_name
    from menu_master_user where user_key='''||:global.user_key||
    ''' connect by prior menu_name=root_menu and user_key='''||:global.user_key||
    ''' and acc=''Y''
    start with menu_name='''||startmenu||''' and user_key='''||:global.user_key||
    ''' order by seq');
    a:='select 1,level,menu_name,:global.drive||icon_file,form_name
    from menu_master_user where user_key='''||:global.user_key||
    ''' connect by prior menu_name=root_menu and user_key='''||:global.user_key||
    ''' and acc=''Y'' start with menu_name='''||startmenu||''' and user_key='''||:global.user_key||
    ''' order by seq';
    -- Populate the record group with data.
    v_ignore := Populate_Group(rg_emps);
    -- Transfer the data from the record group to the hierarchical
    -- tree and cause it to display.
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
    -- Find the tree itself.
    htree := Find_Item('tree4');
    -- Find the root node of the tree.
    --node  := Ftree.Find_Tree_Node(htree,'Setup');
    -- Loop through all nodes and expand each one if it is collapsed.
    for aaa in aa loop
         node := Ftree.Find_Tree_Node(htree,aaa.menu_name);
    IF NOT Ftree.ID_NULL(node) then
    state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
    IF state = Ftree.EXPANDED_NODE THEN
    Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
    END IF;
    end if;
    END LOOP;
    END;
    END;
    Any solutions or my code is wrong?
    Edited by: 995252 on Mar 21, 2013 12:17 AM

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
    Lets start with some of the basics. What is your Forms version, Client OS version; if web deployed, your browser and Java versions and any error messages you might be receiving.
    Craig...

  • R12 responsibility tree cannot be closed

    Hi,
    We recently upgraded from 11i to R12, we noticed that in the left of main page, you need to use a tree to navigate through responsibility and detail pages .
    A problem we found was that if there is only one item under a responsibility, you cannot collapse the node, every time you click the '+' or '-' button, it bring you straight to the page rather than open or close the node.
    Does anyone know if this a known issue for Oracle? or there is a way to fix it.
    Thanks,
    Joe

    Please see the following docs.
    12.1.2: How to Modify and Enable The Configurable Home Page Delivered Via 12.1.2 (Doc ID 1061482.1)
    Responsibilities Sometimes Disappear When Navigating Back To The Homepage (Doc ID 1316974.1)
    If you still have the same issue, please log a SR.
    Thanks,
    Hussein

  • 648 max , testing base and extended memory

    I dont see the thread i answered to one time that someone spoke of using ddr400 with 648 max or max-L board and they were getting testing base and extended memory error from the LED's.  Well i just got the same error today and my system would not boot i cut the power to the PS. and turned it back on it would start to boot and hang i could barely get to the windows logo sometimes the vid card wouldnt even boot the logo to the screen. This is with an updated mobo that msi sent me that i had just put in , it seemed to run fine at first then this problem started occuring.  The only difference i had in the setup from the previous outdated board was i had the mem in DIMM 3 and not DIMM 1, so i moved the memory back over to DIMM 3 and now the problem is gone. Just something for those of you with the same problem to try.
    Oh and i forgot one more issue, i cannot set the dram speed in the bios manually i have ddr 333 it should be 167 mhz so i set it to 4/5  and the system will not boot at all  i end up having to reset cmos.  I called MSI about that and they told me to just have it set to SPD , I said i know that and im fine with leaving it that way but it should let me set it manually if i wanted to and that i wondered if that had anything to do with the random " testing base and extended memory " problem.

    It was probably myt thread...
    http://www.msi.com.tw/program/e_service/forum/viewindex.php?threadid=6204&boardid=10&styleid=1
    Have done some testing with both DDR333 and DDR400 and my results are in the thread.
    Right no I'm using my DDR400 as DDR333, manually set to 167MHz, using DIMM1, and havn't seen any problems. I'll try the DIMM3 to see if I get any changes.
    And by the way.. I tried setting my DDR400 manually to 200MHz and it wouldn't boot at all. After a lot of ugly language I finally got it back to the BIOS....after a reset of the CMOS.
    Seams like you should use SPD if you want to use the correct freq for your RAM.
    Have you tested the new 1.3 BIOS?

  • Application cannot run after extending weblogic domain

    I create a weblogic domain using jdeveloper 11.1.1.4. I deploy some adf applications to this domain. These applications are fine.
    Then, I install SOA Suite 11.1.1.4 and extending the above domain. However, these adf web applications cannot run. What's happening?

    Can you post the exceptions?

  • WebDynpro ABAP tree node collapse trigger event of row selection

    Hello expert,
    I have a table in my WD abap view, I use MasterColumn to display the tree structure, everything works just fine.
    However I encounter one problem:
    If I open the tree structure and select one node (table row selection), the event onLeadSelectis triggered, this is correct. However if I collapse any  parent nodes (along the tree path) of the selected node, WD puts the selection on the clicked parent and thus the event onLeadSelect is triggered for the parent. This is a strange behavior, because when I collapse a node, I certainly don't want to trigger the onLeadSelect event for the node, becaseu this would invoke the function linked to the event which is only supposed to be triggered when you explicitly select the table row.  (BTW, if you don't select any child nodes, then collapse the parent, it does NOT trigger the event).
    I've looked into the wdevent data to see if I can differentiate between the event of node collapsing and row selecting, event data is exact same for both cases, thus I have no way to stop the event handler in case of node collapsing.
    Anyone had this issue and a solution for this?
    Thanks
    Jayson

    Hi Jayson,
    Its the behavior of the tree element, the lead selection of child is carried over to the parent.
    Whenever there is lead selection set and on toggling of tree node, first OnToggle event triggers and then OnLeadSelect triggers. So you can control the execution of onLeadSelect by using EXPANDED parameter of event OnToggle.
    Please refer the below steps:
    Create an action ON_TOGGLE for the vent OnToggle of tree element and it will be having parameter EXPANDED
    Create an attribute in view-->attributes tab GV_EXPANDED
    Collect the parameter EXPANDED into gv_expanded
              wd_this->gv_expanded = expanded.
    Now, you can use wd_this->gv_expanded to control the execution of LEADSELECT logic
    Hope this helps you.
    Regards,
    Rama

  • Cannot import  and work with the files from Canon 6D and Panasonic GH4

    Thanks for your answer, but it is not really helpful. Perhaps my question was not exactly enough-sorry but my english is not in the best condition. I dont need trials I have some applications and my Intel MAC Pro 2009 is strong enough. For instance Phase One can read my RAW-pictures from my Canon 6D, but no RAW-file from the GH4. Finalcut Pro Vers 7.0.3 no chance to open Movies made with the GH4 and the AVCHD-codec, though the AVCHD-codecs from my old Canon Videocamera works perfect. Even movies with Mpg 4 H 264 are not recognized.  Perhaps I need a special Converter App, for all my Converter Apps like Mpeg streamclip or Flip for MAC cannot read and convert the these files into RS 422.

    Will the DNG files perform the same, meaning will I retain all the information that makes RAW important for processing?
    Yes. That's why DNGs were invented. Adobe has put a lot of work into the DNG format for this very reason.
    Raw files are proprietary and manufacturer specific. Raw formats change with every make and model of camera. Software must be updated for the new Raw format of every single camera. Adobe does an admirable job of upgrading Camera Raw for every new camera.
    DNG is also a Raw format but it's open source and works in any software which can read the DNG format. If camera manufacturers used the DNG format instead of their own Raw format, you would not have to upgrade Elements 10. But they don't, and probably never will, so you must upgrade the Camera Raw plugin (and therefore Elements 10 since it's not compatible with the new Camera Raw) to read the new Raw format from the 6D or add another step to your workflow with conversion to DNG first.
    See
    http://photographylife.com/dng-vs-raw
    http://www.adobe.com/products/photoshop/extend.displayTab2.html

  • Cannot drag and drop Tabs

    I have used Firefox for the longest time (Since v1.0) and have loved it in every way. Version 3's tab system was extremely helpful and innovative, and 3.5's drag-and-drop system was excellent.
    I now have version 4, and have had it since about a month ago. Everything worked excellently with all my extensions, until just two days ago. When I attempted to re-arrange my tabs (using drag-and-drop), nothing happened. The little arrow thing didn't appear and it didn't even acknowledge the fact that I was holding down my mouse button. This not only nullified my ability to rearrange my tabs, but also my ability to use my second monitor efficiently using the extension TabFlick.
    Nothing changed when I started Firefox in Safe Mode, nor when I re-installed it. What gives?

    ''"...I cannot drag and drop tabs (the iconic graphic moves but disappears when released)..."''
    Drop the tab when the arrow appears pointing between 2 tabs as depicted here: http://support.mozilla.com/en-US/kb/Tabbed+browsing#Moving_tabs
    ''"...also I cannot "select" tab for changing child/parent status etc."''
    If that question relates to Tree Style Tab, see: http://piro.sakura.ne.jp/xul/_treestyletab.html.en ~~red:or~~ http://piro.sakura.ne.jp/xul/_treestyletab.html.en#api

  • TreeByNesting image changes required for Expand,Collapse and Leaf Icons

    Hi
    I am currently working on webdynpro for Java on NW04s SP15.
    I have embedded Tree Element inside Table. I need to change the Expand,Collapse and Leaf Arrows inside Table. I dont find those things inside Theme Editor.
    Could you please suggest how can I change those Icons.
    Thank you
    Regards
    Krishna Kanth.

    Hi WalterLaan,
    Thanks for your replay, I had tried with TreeExpansionListener before posting it, but not with TreeWillExpandListener.
    I have a mouseListener to handle a leaf on single click.
    My problem is now my foldernode has arrowIcon, folder icon, text, all three respond for click action(expand/collapse), since my renderer has all the three in one panel and rendering it
    but i want arrowIcon has to behave separate on single click and folder icon and text has to behave different at the same time.
    I have plan to separate it(arrowIcon in one panel/ another two in another panel) in a renderer, is it will help me?
    Thanks, your post given little light to me.
    I will do more R&D of this.
    More suggestion are welcome.

  • Whats the difference between implements and extends!??

    Can an interface be extended or not??
    If it can whats the difference between implements and extends??
    Thank you!

    Code Sample:
    interface a implements aa{This is illegal. An interface cannot implement another interface. It can only extend another interface.
    interface a extends aa{That's the way to do it. As already said above:
    An interface can only extend another interface.
    A class can extend another class.
    A class can implement zero or more interfaces.
    So, "implements" is only used for classes that implement interfaces. For the rest, "extends" is used.

  • Airport Extreme wired AND extend network - Need Input

    I just bought 2 Air Port Extreme units (the latest 5th generation).  I'd like to use them in the following configuration:
    1.  Unit 1 connected to my cable modem, providing wireless service and wired to a switch which distributes the connectivity to a few other places in my house via ethernet cable.
    2.  Unit 2 on the opposite side of the house, extending the wireless signal from Unit 1, and hardwired to the ethernet in the house.  Then several other items plugged into Unit 2 for connectivity.
    Problem is, I seem to have 1 of 2 choices:
    1.  Configure Unit 2 in bridge mode.  Hardwire to network works and connectivity works, but there is no wireless turned on, hence no wireless extension.
    2.  Configure Unit 2 to Extend Network.  Wireless is extended, and works fine.  Items can be plugged into Unit 2 and get connectivity, but I cannot connect Unit 2 to the wired network.
    Am I right that I can't get what I want - Unit 2 wired into the internal ethernet network AND extending the wireless network from Unit 1?

    Connect them in a "Roaming" network which is the best wireless network available.
    Roaming Network (Ethernet-connected Wi-Fi base stations)
    For 802.11n Wi-Fi base stations, creating a roaming network is by far the best choice. This will provide the best throughput between the base stations and your Wi-Fi devices.
    This set up requires that your Wi-Fi base stations are connected via Ethernet.
    The primary base station provides DHCP Services, while the extended base station will be configured to use bridge mode.
    All Wi-Fi base stations within the roaming network should use the same passwords, security type (Open/WEP/WPA), and network name (SSID).
    These would all use the same "Create a wireless network", same password, same network name, same security, etc.....
    Sounds like you can do this with all the cables you have througout the house....
    You would not use "Join", "Extend", or "Bridge"..... You would choose "Create a wireless network" on all the base stations.......

  • Provider Connection String and Extended Protection

    Good morning,
    I have an application which by default uses OLEDB as Provider in the Connection String and I cannot change this. The Connection String that it uses is the following:
    "Provider=SQLOLEDB.1;Data Source=ServerName;Initial Catalog=DatabaseName;Persist Security Info=False;Integrated Security=SSPI"
    The database server (SQL Server 2012) and the client application are placed in two different computers but in the same domain. 
    The problem is that I cannot connect to the server from the application when I configure the SQL with Force Encryption On and Extended Protection as Required or Allowed. If I disable Force Encryption, then the connection works (Extended protection as Required
    and Allowed). This happens when I use Windows Authentication, with SQL Server Authentication there is no problem.
    I've tried to use this connection string in a Visual Basic script and it doesn't work either. But when I change the provider to "Provider=SQLNCLI11" then it works (with Force Encryption On, Extended Protection as Required/Allowed, and using Windows
    Authentication).
    With SQL Server Management Studio everything works fine.
    Anyone can explain me the reason why this happens? and if is there a solution?
    Thank you!

    public static void DoTestDbOracle()
    // OracleConnection takes the settings from TNSNAMES.ORA
    OracleConnection connOracle = new OracleConnection("SERVER=FRED.WORLD;PWD=uFRED;UID=pFRED");
    String strSQL = "SELECT DISTINCT MARKET_ID, SWITCH_NO, CELL_ID, SECTOR_ID FROM FRED_TABLE";
    connOracle.Open();
    OracleCommand cmdOracle = new OracleCommand(strSQL, connOracle);
    OracleDataReader rdrOracle = cmdOracle.ExecuteReader();
    while (rdrOracle.Read())
    Console.WriteLine("{0:G}-{1:G}-{2:G}-{3:G}",
    rdrOracle["MARKET_ID"],
    rdrOracle["SWITCH_NO"],
    rdrOracle["CELL_ID"],
    rdrOracle["SECTOR_ID"]);
    connOracle.Close();
    }

Maybe you are looking for

  • Fill-In PDF form problems

    I filled in a job application document in Adobe Reader (as instructed by the HR website of the company I am applying to). When I re-opened the saved document in AR, the text was gone. When I opened the same version in Preview, the checkmarks were gon

  • How do  i convert my cv from template on mac to pdf

    hi guys am new to this computer and a bit old and need to be able to upload my cv from the template used on the mac to a pdf format. How do i do this please?

  • Cycle count ABC report from MBEW, MARC, MLGN, MLGT

    Guys I have this spread sheets I wanted to join and make a ABC analysis report that i need to confiure in ABC indicator. If anyone have Idea how to join this spread sheet and get the ABC analysis report lick material ID, Part #      Consumption Qty  

  • Regarding conversions

    Hello, "I wish to code the number conversion from decimal to binary. Conversion should be of any number which is with/without minus sign and with/without decimal part. Please guide me."

  • CURRENCY CONVERSIONS

    Hi , CURRENCY CONVERSIONS CAN BE WRITTEN IN UPDATE RULES. WHY NOT IN TRANSFER RULES? Regards, Vamsi Krishna Chandolu