How to make a node chooseable

this is my tree:
<af:tree value="#{favoriteTreeMB.treeModel}" var="node"
rowSelection="single" id="pt_t1">
<f:facet name="nodeStamp">
<af:group>
<af:goLink text="#{node.attributes['name']}" styleClass="common"
destination="#{node.attributes['link']}"
rendered="#{not empty node.attributes['taskflow']}"/>
<af:outputText value="#{node.attributes['name']}"
rendered="#{empty node.attributes['taskflow']}"/>
</af:group>
</f:facet>
<f:facet name="pathStamp"></f:facet>
</af:tree>
this is the tree model:
public class FavoriteTreeModel extends ChildPropertyTreeModel {
public FavoriteTreeModel() {
super();
public FavoriteTreeModel(java.lang.Object p1, java.lang.String p2) {
super(p1, p2);
@Override
public boolean isContainer() {
return ((TreeNode)getRowData()).isLeaf();
how to make the node chooseable,and how to get the choosed node?

Hi,
the tree component has a selectionListener property that you need to wire with a method on your tree model using EL
Frank

Similar Messages

  • How to make all nodes in a detailed navigation tree open automatically??

    Dear All,
    I have added some iViews to two folders and add these two folders to a workset "Time" and then add "Time" to the role of Employee portal user.
    How to make all nodes expanded automatically when this workset is clicked in EP??
    thanks,
    Zita

    Not surprising...it does not work even if you follow the exact way...
    Role ->
             Workset 1
                          -> Page 1
                          -> Workset 2
                                           -> Page 2
                          -> Workset 3
                                           -> Page 3
    When the user clicks on Role which is the Entry Point, I want the user to see Page1 (works alright) and want the tree node Workset 2 open (doesn't work)...I want tree node Workset 3 closed (which is what happens...)
    The thing is Workset 2 has to be open...
    This is what I've done...I've made the Initial State of Navigation Panel set to "Open"...
    What else is to be done????
    Thanks a lot.
    JP

  • JTree: How to make few nodes editable

    I have a JTree which displays some complex expression.
    I want to make few nodes of the JTree editable and specify JCombobox as an editor. How can I do this?
    Any help or pointer?
    Thanks in advance
    Sachin

    I want to make few nodes of the JTree editablei'm not sure how you can do this - there is JTree.setPathEditable(boolean) but this means you'd have to subclass JTree ?
    you might be able to make a cell editor that returns some value to indicate a particular cell isn't editable, or failing that return a read-only component but I've not tried this..
    and specify JCombobox as an editor.this may help:
    http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node156.html
    asjf

  • How to make 2 Node File Cluster with SAS Disks

    Hello,
    I cant fine any detailed, specific information and answer on this question
    I have 2 Servers, Say HP, with 4 SAS disks each,  1 for OS (2012R2Data) and 3 available.
    I want to create fault tolerant SMB 3.0 share for my Hyper-v nodes, to make hyper-v FT cluster afterwards.
    So, I see inr equirements that SAS disks will work, but during creating cluster, I can not manage Cluster to see disks from both servers (total 6 free units)
    If it is made via ISCSi target, both servers have access to that targets and cluster sees all available through iSCSI disks, but how to mnake SAS disk available to other server?
    Is it possible what I need with this configuration?  is it a option to make each server iSCSI target and initiator? (but it would be way complicated and slow, I think).
    so, what I have misunderstood, how to make FT file Cluster with 2 servers with SAS drives?
    Any info about this SPECIFIC config would be welcomed, or any general step-by-step guides  (please, do not link me guides with other config, like iscsi or with additional servers, I have seen a lot of them :()
    thanks

    Hello,
    I cant fine any detailed, specific information and answer on this question
    I have 2 Servers, Say HP, with 4 SAS disks each,  1 for OS (2012R2Data) and 3 available.
    I want to create fault tolerant SMB 3.0 share for my Hyper-v nodes, to make hyper-v FT cluster afterwards.
    So, I see inr equirements that SAS disks will work, but during creating cluster, I can not manage Cluster to see disks from both servers (total 6 free units)
    If it is made via ISCSi target, both servers have access to that targets and cluster sees all available through iSCSI disks, but how to mnake SAS disk available to other server?
    Is it possible what I need with this configuration?  is it a option to make each server iSCSI target and initiator? (but it would be way complicated and slow, I think).
    so, what I have misunderstood, how to make FT file Cluster with 2 servers with SAS drives?
    Any info about this SPECIFIC config would be welcomed, or any general step-by-step guides  (please, do not link me guides with other config, like iscsi or with additional servers, I have seen a lot of them :()
    thanks
    You cannot do what you want with a Microsoft built-in tools. MSFT require you to take your SAS disks away from your servers, buy a SAS JBOD (better more then one to get advantage of a so-called "enclosure awareness" and avoid single point of failure) and
    configure Clustered Storage Spaces with now *external* SAS drives. See:
    How to Configure a Clustered Storage Space in Windows Server 2012
    http://blogs.msdn.com/b/clustering/archive/2012/06/02/10314262.aspx
    Prerequisites
             A minimum of three physical drives, with at least 4 gigabytes (GB) capacity each, are required to create a storage
    pool in a Failover Cluster.
             The clustered storage pool MUST be comprised
    of Serial Attached SCSI (SAS) connected physical disks. Layering any form of storage subsystem, whether an internal RAID card or an external RAID box, regardless of being directly connected or connected via a storage fabric, is not supported.
    Windows Server 2012 R2 had flexed out some limitations so now ReFS is supported (but useless as VMs cannot be integrity checked and protected) and now you can use parirty spaces (also useless as they are DOG slow with a typical VM workload dominated by small
    writes, say 4KB write initiates 256KB+ parity stripe read-modify-write update). Core requirements "SAS everywhere" is still there.
    So if you don't want to mess with SAS JBODs you may give a try to a virtual SAN solutions available on the market. They can cluster a pair of hosts (even with a single port SATA drives) w/o any external hardware, only Ethernet required. There are even free
    options available. See:
    Free Virtual SAN
    http://www.starwindsoftware.com/native-san-for-hyper-v-free-edition
    Also Google (or Bing?) for DataCore and SteelEye as they have very similar native (Windows-based) offerings. + there's bunch of a VM-running storage doing more or less the same.
    Hope this helped a bit :)
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • How to make some nodes invisible?

    I set up a xml tree with JTree.Now I want to make some nodes invisible like the nodes which the name of the node is "datatype",how can I ?Thank you.

    I don't know if the nodes can be made invisible. But if you make cell renderer then you can evaluate the value before displaying it. If value is like 'datatype', you display (cell renderer displays) nothing as value in the cell.

  • How to make a node of a Hierarchical Tree BOLD

    When we click the node of a Hierarchical Tree, we want to make the node BOLD. We tried using set item property but it's not working.

    There aren't really any built-ins that will allow you to change the Font Weight of the Tree Node Label. You might be able to accomplish this with Java, but you would have to write your own Java Bean to implement. It might be easier to simply add an Asterisk (*) to the label programatically using the Set-Tree-Node-Property() built-in, but this presents problems with removing the asterisk when you leave the selected node or select a new node. It can be resolved, but you'll have to record all the information you'll need to reset the node - namly just the Node_ID.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 24, 2012 7:52 AM

  • How to make entire node attribute elements as read-only ?

    Hi Experts,
    I have an requirement to make all fields of an form view (based on one context node) in UI to be shown in Display mode. Any idea on how to acheive that ?
    I know get_i_xxxx method. But, they should be coded for each attribute seperately. Any method based on node level ?
    Also, any method based on entity ? I see a method 'switch_to_change_mode' of class cl_crm_bol_entity. But, there is no other method to change to display mode.
    Thanks & Regards,
    Gaurav.

    Hi Gaurav,
      In your htm page you can place the below thing.
    displayMode     = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>" />
    When the user clicks on the Edit button , in the edit event handler set the view to change mode using method SET_VIEW_EDITABLE.
    Hope this helps you.
    Regards,
    Lakshmi.Y

  • How to make parent node JCheckbox

    How can I make the parent node in
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm
    to a checkbox.
    Any help is greatly appreciated.
    Regards,
    Anees

    See my example here: [http://forums.sun.com/thread.jspa?threadID=5180008&messageID=9699576]
    If you have a specific problem post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.

  • How to make a node 3 undotbs recover in RCA

    Hi Experts,
    We have 4 node RAC with database 10.2.0.4 at ASM in redhat
    I got an error as
    ORA-00376: file 6 cannot be read at this time
    ORA-01110: data file 6: '+DATA1/sale/datafile/undotbs3.272.690290289'
    even I created new undotbs3b and made new undotbs3b as default undo at node3.
    I still get some error.
    I check example at ORA-00376
    I try to recover datafile as
    SQL> select ONLINE_STATUS from dba_data_files
    2 where file_id = 6;
    ONLINE_
    RECOVER
    SQL> recover datafile 6;
    ORA-00279: change 7367573185205 generated at 01/23/2010 02:18:30 needed for
    thread 3
    ORA-00289: suggestion : +FLSDISK1
    ORA-00280: change 7367573185205 for thread 3 is in sequence #2526
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    I got above error message.
    How to recover undotbs3 at node3.
    I am looking for help!!
    JIm

    Hi damorgan ,
    CREATE UNDO TABLESPACE "UNDOTBS3B" DATAFILE
    '+DATA1/sale/datafile/undotbs3b.678.709037439' SIZE 7340032000
    AUTOEXTEND ON NEXT 104857600 MAXSIZE 32767M
    BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE
    SQL> column file_name format a50
    SQL> SELECT file_name, status FROM dba_data_files;
    ILE_NAME STATUS
    DATA1/sale/datafile/users.267.690290115 AVAILABLE
    DATA1/sale/datafile/sysaux.263.690290115 AVAILABLE
    DATA1/sale/datafile/undotbs1.268.690290115 AVAILABLE
    DATA1/sale/datafile/system.273.690290113 AVAILABLE
    DATA1/sale/datafile/undotbs2.269.690290179 AVAILABLE
    DATA1/sale/datafile/undotbs3.272.690290179 AVAILABLE
    DATA1/sale/datafile/undotbs4.271.690290179 AVAILABLE
    DATA1/sale/datafile/audit_data.261.690804837 AVAILABLE
    DATA1/sale/datafile/users.266.691065529 AVAILABLE
    DATA1/sale/datafile/dvptbs.276.694187101 AVAILABLE
    DATA1/sale/datafile/users.265.691628111 AVAILABLE
    ILE_NAME STATUS
    DATA1/sale/datafile/users.264.691628151 AVAILABLE
    DATA1/sale/datafile/users.259.691628381 AVAILABLE
    DATA1/sale/datafile/users.257.691628523 AVAILABLE
    DATA1/sale/datafile/users.258.691628555 AVAILABLE
    DATA1/sale/datafile/users.256.691628587 AVAILABLE
    DATA1/sale/datafile/users.274.691628611 AVAILABLE
    DATA1/sale/datafile/users.275.691628671 AVAILABLE
    DATA1/sale/datafile/undotbs3c.571.709068541 AVAILABLE
    I check each node. all default undotbs does not use undotbs3. the pfile and spfile also does not point to undotbs3.
    Can I drop undotbs3? it does not need to use. we can reload data again
    What do I need to do next?
    I am waiting for help!!
    Jim
    Edited by: user589812 on Jan 24, 2010 8:22 AM

  • How to make a node storage disabled for a particular cache?

    I have multiple caches that are distributed across the nodes in my application. Can I disable storage (localstorage=false) for a certain cache in a node.
    Intention is to make something like this:
    CacheA distributed between node1 and node2
    CacheB distributed between node1 and node3
    Thus none of the node would be a non storage node completely here. Hence I would be required to specify this in the coherence-config.xml. If the answer is following for node 2
    <distributed-scheme>
         <scheme-name>CacheB</_CacheEvent_scheme-name>
         <service-name>DistributedCache</service-name>
         *<local-storage>false</local-storage>*
         <backing-map-scheme>
         <local-scheme>
         <scheme-ref>backingSchemeB</scheme-ref>
         </local-scheme>
         </backing-map-scheme>
         <autostart>true</autostart>
         </distributed-scheme>
         <local-scheme>
         <scheme-name>backingSchemeB</scheme-name>
         </local-scheme>
    What should be the backing scheme, as my local storage is false for cacheB?

    Hi Mahesh,
    you can control the storage-enablement of distributed caches on a per-service basis.
    In your case, you have to put cache A and cache B into different services (serviceA and serviceB for the example) and run service A as storage-enabled on nodes 1 and 2, and service B as storage-enabled on nodes 1 and 3.
    For more information, look at my post from two years ago:
    Re: Partitioned cache - where to put what config files?
    Best regards,
    Robert

  • Treeview control - How to make a node blink?

    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...

    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;

  • DMEE : how to make parent node disappear when child node is empty

    Hi Friends ,
    Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
    Is there any other way for this ?
    Please help.
    Komaravolu

    I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

  • How to make Interface node in an Enhancement Implementation

    I am adding my own context node in the component controller inside an enhancement implementation.  It does not allow me to choose that it is an "Interface Node".  The check box is greyed out. Please help.

    I dont think it allows you to select interface node even if it is your own context node using enhancement implementation.
    i checked in my system and result is same
    Thanks
    Bala Duvvuri

  • How to blink TreeView Nodes based on condition c#

    suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes  based on condition in winform application.

    Hi Mou_kolkata,
    >> anyone can give me small working code for tree node blinking
    Thank Armin for the details about blinking TreeView Nodes.
    For a simple demo to blink TreeView nodes, you could refer the link below:
    # Treeview control - How to make a node blink?
    https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
    If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make a job run on a appointed node

    I have a problem. The database is Oracle 10g, RAC, two nodes
    There are some job which run on everyday night. Now, something happened, the job run on Node A can't work as normal, but if run on node B, It will work well.
    so I just want to submit the jobs on Node B, I submited the jobs on Node B, but the jobs always run on Node A.
    I want to know how to make a job run on a appointed node.

    the Job just transfer some procedure to add partitions for some table, to merge the records from some tables to one table and so on.
    the problem is when the job run on Node A, it is very very slow, the procedure would run hours and not success end, but if on Node B it will successfully end in seconds.
    restart the Node A would be a way for the problem, but may it will leave a hidden trouble. I want save the scene to find out the problem
    so can you help me

Maybe you are looking for