Tree problem in 11g

Hi,
I'm using Jdeveloper 11g.
When I add an item in a tree, the tree does not refresh until I click on the tree's root. What should I do too see the changes in the tree by the time I add a new item in it ?
Thanx in advance,
Shadi

From you explanation, i suppose,
1. Your creation form is in the jsff page.
2. Your tree is in the jspx page.
3. You've dropped the jsff page as region in the jspx page where you have tree.
Now, after pressing submit on the region, your tree is not refreshed with the new row you created. Am I correct?
If yes, then, I suppose your tree and creation form are bound to different Iterators. So, you may need to perform execute on the iteration (on which the tree is bound to).
Try this,
1. In the action Listener of the Commit button, after the commit operation, get the Iterator on which the tree is based on.
2. Perform execute.
Does it work now?
-Arun

Similar Messages

  • 11g's TREE PROBLEM

    Hello,
    I'm using Jeveloper11g TP1 and I need to know what should I do if I want to have 11g's tree be updated every time I add a new item in it? coz I see that it has to be requeried each time I add an Item in it.
    Is there a way to see the added item in the tree right after pushing the save button??
    Any idea what I'm missing?
    Thanks Shadi

    Shadi,
    There are quite a few limitations with the tree implementation in TP1. I suggest you wait for the production version, planned for this fall to get this feature.
    Steven Davelaar,
    JHeadstart Team.

  • Installer problem - Oracle 11g on Redhat ES 5.1 (x86)

    Hi,
    I'm trying to run the "runInstaller" script to install Oracle 11g onto my Redhat ES 5.1 (x86) machine and the following error is being reported:
    Starting Oracle Universal Installer...
    Checking Temp space: must be greater than 80 MB. Actual 1409 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 1407 MB Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-01-10_04-46-50AM. Please wait ...Exception in thread "main" java.lang.NoClassDefFoundError: oracle/ewt/lwAWT/BufferedFrame
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    I copied all the installation tree to /tmp/oracle and ran chmod -R 777 * to make sure I could see all the files.
    I've been logging onto the server as the oracle user.
    I've also got Java v1.5.0.6 installed
    I've run out of ideas - anyone able to assist ?

    I've sorted it. Was originally copy unzipped install files from DVD into /tmp but think there must have been some corruption. I now copied and unzipped the install file onto the RH machine and it's now working.

  • Installation problem oracle 11g R2 on oracle enterprise linux 5 update 5

    hello support,
    i've installation problems with oracle 11g R2 on oracle enterprise linux 5 update 5. In the section "ORACLE Net-Konfigurationsassisten" the failure "[INS-20802] Oracle NET-Konfigurationsassistent not success". What's wrong? I've followed the instructions on http://www.oracle.com/technology/pub/articles/smiley-11gr1-install.html
    I've heard the problem can occur with problems in /etc/hosts? My /etc/hosts is configured:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1          oracle localhost.localdomain localhost
    ::1          localhost6.localdomain6 localhost6
    is this ok? what can I do to bring the database-installation to success?
    Thank's for help ;-)
    Edited by: user5782904 on 09.05.2010 14:06

    Here I paste you the configuration of my latest linux box which has a similar environment like yours.
    # hostname
    vmrhel6032.quist.ch
    # domainname
    (none)
    # cat /etc/hosts
    192.168.1.205 vmrhel6032 vmrhel6032.quist.ch
    127.0.0.1     localhost  localhost.localdomain localhost4 localhost4.localdomain4
    ::1           localhost  localhost.localdomain localhost6 localhost6.localdomain6
    # cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=vmrhel6032.quist.ch
    # cat /etc/sysconfig/network-scripts/ifcfg-eth0
    # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
    DEVICE=eth0
    HWADDR=00:0C:29:6A:98:70
    ONBOOT=yes
    NETWORK=192.168.1.0
    NETMASK=255.255.255.0
    IPADDR=192.168.1.205
    #Thanks to your post I noted that the hostname consist already of my domain entry. Try your configuration first without domain entry. It should look like:
    # hostname
    vmrhel6032
    # domainname
    (none)
    # cat /etc/hosts
    192.168.1.205 vmrhel6032
    127.0.0.1     localhost  localhost.localdomain localhost4 localhost4.localdomain4
    ::1           localhost  localhost.localdomain localhost6 localhost6.localdomain6
    # cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=vmrhel6032
    # cat /etc/sysconfig/network-scripts/ifcfg-eth0
    # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
    DEVICE=eth0
    HWADDR=00:0C:29:6A:98:70
    ONBOOT=yes
    NETWORK=192.168.1.0
    NETMASK=255.255.255.0
    IPADDR=192.168.1.205
    #Otherwise use the first example and don't forget to restart your server resp. the network service. ;)

  • Active Directory provider problem in 11g

    I am having the opposite problem than many others I see setting up Active Directory as the user store for OBIEE 11g. On two of the installations I have done the Active Directory users work but the original weblogic user does not work in OBIEE. It works fine in the WLS console and the FM Enterprise Manager but fails in analytics. The error I'm getting is:
    'weblogic' was authenticated but could not be located within the Identity Store.
    When others were having this problem they had left the default provider's control flag set at "REQUIRED" and not changed it to "SUFFICIENT". But I have done this (and gone back and reset it again) but the error persists. Any thoughts.

    Setting virtualize=true worked. I had tried this before but I think I did what I almost did this time. I almost created the variable virtual instead of virtualize. Thanks. The instructions I followed from Oracle didn't have this step. And I am wondering why it is necessary. The help for the SUFFICIENT setting says:
    A SUFFICIENT value specifies this LoginModule need not succeed. If it does succeed, control is returned to the application. If it fails and other Authentication providers are configured, authentication proceeds down the LoginModule list.
    Before I set this. yes, my AD users could login to EM and the WLS console. Other than this the AD integration has worked well.
    Edited by: dirkt on Sep 19, 2011 12:36 PM

  • Two iterators browsing the same data (a table and a tree) problem

    I have an ADF UIX application with a navigation tree and a central page with a table of the records of a Works view object.
    There is a hierarchical relationship of Works ->Subworks-> Tasks which is shown in the tree. In the central part of the page, there is a table of Works.
    I want
    1) the tree to show all the data, but only about 10 works at a time (using small arrows for scrolling up and down)
    2) the table to show only 10 or 20 records each time. Not the same with the tree.
    3) Both clicking on a link on the tree and selecting a work on the table will open the appropriate page.
    4) Opening the children of a node in the tree and clicking on the links being able to send me directly in the correct subwork or task page EVEN if I haven't visited the parent node (work) first.
    I cannot seem to be able to succed in the "even if" part of 4 and I can succeed in only any 2 of the first three.
    If the tree iterator and table iterator point to the same view object (work1 for example), it is impossible to show a different set of works in the tree and the table
    If I use different view objects, then, if the tree part is working, the table selection doesn't work. I imagined that's a problem with "SetCurrentRowWithIndex" and I tried to set up correctly a "SetCurrentRowWithKey" event, but I didn't know how to write the handler. (I use JHS event handling, by the way)
    I suppose the following has errors:
    <event name="setCurrentRowWithKey" source="GetaeergView1">
    <set target="${bindings.GetaeergView1Iterator}" property="currentRowKeyInRange" value="${ui:tableSelectedKey(uix, 'GetaeergView1')}"/>
    </event>
    Any suggestions?

    Noone has tried this again?

  • Compilation problem in 11g environment

    Hello mates,
    we have migrated from oracle 10g to 11g recently. we have lot of pro*c and
    forms programs. so i need to check all these programs are running same as in
    10g environment. for this i want to compile all the pro*c programs in unix environment.
    we have a script to compile pro*c programs.when i am trying to compile pro*c programs getting these errors.
    let me know what is the problem...
    Thanks in advance...
    $> C xxx.pc
    Compilation xxx.pc Successful
    Compilation .pc Successful
    Linking Started <./gen_all>.....
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libsql10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/rdbms/lib32/kpudfo.o: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libplp10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory

    ramadurga.v wrote:
    Hello mates,
    we have migrated from oracle 10g to 11g recently. we have lot of pro*c and
    forms programs. so i need to check all these programs are running same as in
    10g environment. for this i want to compile all the pro*c programs in unix environment.
    we have a script to compile pro*c programs.when i am trying to compile pro*c programs getting these errors.
    let me know what is the problem...
    Thanks in advance...
    $> C xxx.pc
    Compilation xxx.pc Successful
    Compilation .pc Successful
    Linking Started <./gen_all>.....
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libsql10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/rdbms/lib32/kpudfo.o: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libplp10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directoryDoesn't seem to to do with SQL or PL/SQL as such. Please post in the correct forum (possibly {forum:id=67})

  • Primary Key problem in 11g - Known issue 6894412

    Hi Everyone:
    We are on JDeveloper 11.1.1.4, and JHeadstart 11.1.1.2.46. This thread originally started on the JHeadstart forum and can be seen at: Problem with LOV's in 11g
    We are converting our 10g application to 11g. We have an established Oracle database that does not use pre-populated primary keys that are sequence number. Our database has composite keys and the integrity of those composite keys are established by foreign key constraints to edit tables. This approach has worked extremely well for us for over a decade, the logic of the database has been designed so that the database protects itself through the elimination of cascade deletes where necessary, and cascade deletes as the business logic dictates. This will not be changing.
    In the database tables in which the 10g application has been displayed in the table format, after conversion to 11g, the LOV pop-ups are not working unless the SAVE button (or refresh of the browser) has been pressed. The first LOV pop-up will work, but as soon as you select a value from it, the next LOV pop-ups will not execute until the SAVE or REFRESH is done. This is only in table format. If the display format is form, our primary key LOV's work fine. In 10g, this functionality worked fine as long as we didn't use an "ADD ROW" button on a table format. The Add Row button caused the primary key values to be returned to the application, but not be displayed on the screen. A refresh would then show them.
    From the initial investigation in the JHeadstart forum, I realize that we are hitting the "Primary Keys from Model" 6894412 problem that is listed in the 11.1.1.4 Release Notes. We have spent many, many hours establishing a re-usable .jar file of all of the entities of this very large database as suggested by JDeveloper Best Practises (http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/bcadvgen007.htm). This has worked very well for us in 10g - define all the entity specifics in one place, once, then every application can re-use them. Productivity at its finest. Therefore, we cannot make fake columns in our database in order to fix this "limitation" in 11g. We have many complex parent/child/child tables to put into our application which will not work unless our entities have the primary keys properly defined. I have tried to implement the workaround that was found in the release notes, but have been unable to get it to work.
    I have created a testcase with the HRSchema by adding a table to that Schema that I can provide the SQL commands for, but I do not know who in Oracle support to send it to. Could someone please provide me with the information on who to contact. I have, I believe, taken all the steps as established in the release notes for this problem and have clearly documented the changes in the .jsff page, but the problem still exists. Clearly, I am doing something wrong, or need more information.
    Thank you in advance
    Mary
    UofW

    Frank:
    I thank you for your reply.
    I have been working on the JHeadstart forums for so long, I actually forgot how to submit things to Metalink, and now that I have done it again...SR #3-3101357281 for this issue....I realize why I blocked out using Metalink from my memory.
    It took me an incredible amount of time to fill that SR in, then after completing everything, I was sent a request by the person assigned to the SR to repeat the instructions of how to run my testcase. I had already filled out all of the instructions on how to run the testcase in the "Notes to Oracle" section of the upload step. Almost every time I send something to Metalink, I have to repeat things. It seems as though they aren't read fully and any reason at all is used to send them back to the client.
    My dealings with Metalink have been very, very frustrating. My colleagues share this sentiment.
    Mary
    UofW

  • ALV Tree Problem with Checkboxes

    Hello,
    i've got a problem.
    I have an ALV-Tree and die ALV-Detaillist of the tree are type checkbox.
    That's working correct.
    But i want to fill initial data in the checkboxes but the checkbox isnt set.
    i've done as followed:
      CALL METHOD go_alv_tree->set_table_for_first_display
        EXPORTING
         I_STRUCTURE_NAME     =
         IS_VARIANT           =
         I_SAVE               =
          i_default            = abap_false
          is_hierarchy_header  = ls_header
         IS_EXCEPTION_FIELD   =
         IT_SPECIAL_GROUPS    =
         IT_LIST_COMMENTARY   =
         I_LOGO               =
         I_BACKGROUND_ID      =
         IT_TOOLBAR_EXCLUDING =
        CHANGING
          it_outtab            = <go_data_tab>
         IT_FILTER            =
          it_fieldcatalog      = lt_fcat.
    fieldcat are several fields all as checkbox.
    Then i get a component of the output structure and set a X.
    ASSIGN COMPONENT lv_help_arbpl OF STRUCTURE <go_data_struc>
                           TO <fs_arbl>.
          IF <fs_arbl> IS ASSIGNED.
            <fs_arbl> = lc_xfeld.
          ENDIF.
            CALL METHOD go_alv_tree->add_node
              EXPORTING
                i_relat_node_key     = lv_matnr
                i_relationship       = cl_gui_column_tree=>relat_last_child
                is_outtab_line       = <go_data_struc>
                is_node_layout       = ls_layout
             IT_ITEM_LAYOUT       =
                i_node_text          = lv_node_text
              IMPORTING
                e_new_node_key       = lv_period
              EXCEPTIONS
                relat_node_not_found = 1
                node_not_found       = 2
                OTHERS               = 3.
    in <go_data_struc> the fields which should be set, are set with X.
    But after i add all of my nodes and do CALL METHOD p_go_alv_tree->frontend_update, the checkbox is empty but there is an X in the field beside the checkbox.
    Thanks in advance.
    best regards,
    Dennis

    Ok i solved the problem.
    best regards,
    Dennis

  • Query on ADF Tree rendering - Jdeveloper 11g

    Hi,
    Am facing issues with Tree component rendering. Please find details below.
    Am using Jdeveloper 11g and have created data controls using plain java objects.
    Issue 1:
    I have a method getEmployees() which contains hierarchical data. Upon dragging this onto UI and on creating tree binding, i am able to see the tree.
    However i can expand only the parent node. Upon clicking on any of the child nodes (i.e Level 1 nodes), i get a blinking icon forever.
    Note that upon selecting the context menu option on root node and on selecting "Expand all", i get the complete tree in expanded format.
    Can anyone suggest as to what might be the issue with node expansion here ?
    Approach 2
    I tried creating Treemodel programatically.
    Please see snippet below:
    public TreeModel getModel() throws IntrospectionException {
    if (_model == null) {
    model = new ChildPropertyTreeModel(instance, "children")
    public boolean isContainer() {
    return ((T)getRowData()).hasChildren();
    return _model;
    By creating tree model in this way, tree node expansion issue is resolved. But i noticed that upon clicking on node for expansion,
    the getChildren() method (i.e the childProperty method) gets invoked multiple times and not once for the specifically expanded node.
    Can anyone please suggest as to why this is happening/possible solution?
    Thanks
    Navin

    Thanks for the reply. I can see the facets in the structure window and can seemingly add components there, but this is not reflected in the Design view for the page. Very strange. When the page is run, none of these components in the Accordion panel facets are displayed...
    I'm using JDeveloper version 11.1.2.1.0.

  • ExportCollectionActionListener component problem in 11g

    Hi
    I have a requirement to export all the rows to the excel sheet. When I am trying to used the 11g provided component to acheive this functionality, I am facing a problem.
    I have few Drop down lists on my screen, when I use this in builit component to export to excel sheet, for all the drop down list of values instead of values, Index values are populating in the excel sheet. Any one have idea in this regard?
    Thanks and Regards

    The please see bug 7197342, which may cover why this is occurring. Also see enhancement Request bug 6671512 requesting that the displayed value of an LOV be exported rather than the index value.
    Suggestion: You could try to use the desktop integration package (adfi) instead, see adfi forum http://myforums.oracle.com/jive3/forum.jspa?forumID=1566.
    If what I have stated does not appear to be relevant in this situation , then please ignore.
    Hope it helps.

  • Oraenv problem in 11g

    Hi,
    I have problem while execute . oraenv script. Recently i have upgrade my db from 10g to 11g.
    My DB is : 11.2.0.1
    OS : RHEL5
    Error :
    [oracle@primary ~]$ . oraenv
    ORACLE_SID = [+ASM] ?
    The Oracle base for ORACLE_HOME=/u02/app/oracle/product/11.2.0/grid is /u02/app/oracle
    [oracle@primary ~]$ . oraenv
    ORACLE_SID = [+ASM] ? primary
    The Oracle base for ORACLE_HOME=/u02/app/oracle/product/11.2.0/db_1 is /u02/app/oracle
    Please help me how to overcome this issue.
    Regards,
    Mugunth

    I cannot see any issue here.
    oraenv does setup your env according to your input.
    What is the problem?
    What kind of SIDs do you have?
    Can you please give us content of /etc/oratab ? (your SID list...)

  • Problems with 11g on OEL5 (update 3) / net configuration assitant fails

    While installing 11g on OEL 5 the net configuration assistant failed:
    Oracle Net Services Configuration:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb7e772f3, pid=7352, tid=3084941520
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
    # Problematic frame:
    # C {noformat}[libc.so.6+0x6f2f3] index+0x63{noformat}
    # An error report file with more information is saved as hs_err_pid7352.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    According to the existing articles on this problem the solution is using a static IP and/or adding the IP to /etc/hosts.
    So did I, but: Net Configuration Assistant is still failing!
    This is my /etc/hosts:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    192.168.1.4 localhost locahlhost.localdomain
    127.0.0.1 localhost.localdomain localhost
    Additionally, network is configured without DHCP! Although while checking the prerequisites the installer throw a warning ("... using DHCP may cause problems ...") which puzzles me.
    I should be thankful for any hints/advices.
    Edited by: user6877544 on Aug 29, 2009 2:45 PM: deleted square brackets around libc.so
    Edited by: user6877544 on Aug 29, 2009 3:23 PM
    Edited by: user6877544 on 30.08.2009 00:47 added square brackets around libc.so

    After a reboot the "DHCP-check" is passed:
    INFO: Checking DetectIfDHCPAssignedIP
         This is a prerequisite condition to test whether the primary IP address of the system is DHCP-assiged or static.
    INFO: Detecting the IP.....:192.168.1.4
    INFO: Checking the network interface display name.... :eth0
    INFO: Checking the network reference name..... :eth0
    INFO: Checking the platform .......46
    INFO: Checking the LINUX vendor .... :enterprise
    INFO: Inspect interface file :/etc/sysconfig/network-scripts/ifcfg-eth0
    INFO: Check complete. The overall result of this check is: Passed
    But net configuration assistant is still failing.

  • Problem Installing 11g database

    hi,
    I have installed 11g database but it gave error that enterprise manager is not installed properly. DBConsole services is also not running in control panel .
    Rest things are working file like i am able to access database from sqlprompt. OS is windows xp

    Hi all
    i faced the same problem in windows vista business 32 bit
    i did all the things, drop and create repos again with these scripts:
    emca -config dbcontrol db -repos recreate
    also :
    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create
    but it is not working and i have this error all the times:
    SEVERE: Error starting Database Control
    Refer to the log file at C:\oracle\cfgtoollogs\dbca\mbh\emConfig.log for more details.
    Sep 1, 2009 9:03:13 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
         at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:869)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:250)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:213)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:235)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
         at java.lang.Thread.run(Thread.java:595)
    Sep 1, 2009 9:03:13 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
    CONFIG: Restoring oracle.installer.oui_loc to C:\oracle\product\11.1.0\db_1\oui
    can any one help me with this error? i think oracle should really think about it's new web based generations of EM's, i'm working with oracle since 8.1.7, i don't know why they want to use this unstable Em which every one has a problem with installing it and using it, i even had this problem with em some times in Solaris with oracle 10g r2.

  • J(Check)Tree Problems

    Hi,
    I'm using the JCheckTree from: http://www.fawcette.com/archives/premier/mgznarch/javapro/2001/01jan01/vc0101/vc0101.asp And have some problems with it, hopefull somebody can help me... (source on website)
    1:
    In a normal JTree when you dubbleclick on a folder it opens, when I dubbleclick on the JCheckTree nothing happens. I tried using: .setToggleClickCount(2) but that doesn't help. How can I solve this?
    2:
    In "BasicTreeCellRenderer.java" I use: setIcon(expanded ? UIManager.getIcon("FileView.fileIcon") : UIManager.getIcon("FileView.fileIcon"); to set the Icon for an item, it works. But when I click and select the item the icon is gone and the default Icon is there. When I deselect the Item the right icon is showed agian. How can I fix this?
    3:
    When I click on a folder al childs are automaticly selected, that's nice. I need that, but it will also be handy when I select all the child items manual the folder will be selected to. Or when I select a few child items the folder checked will be gray. (so the userS can see that items are selected when the folder is closed). How can I build this?
    4:
    With the option node.isSelected() I can check of the item is selected. How would it be possible to write a function that checks all the items if they are checked and but then in an array?
    Hopefully somebody can help me, or push me in the right direction.
    Thanks for your time and help!
    Greetings,
    Rene

    4:
    With the option I can check of the item is selected.
    How would it be possible to write a function
    that checks all the items if they are checked
    and but then in an array?I already found this one!    
        Enumeration enum = Tree.breadthFirstEnumeration();
        while (enum.hasMoreElements()) {
          CheckTreeNode node = (CheckTreeNode)enum.nextElement();
          if (node.isSelected()) {
             if (node.isLeaf()) {
                  // CODE
       }

Maybe you are looking for