How add links to Tree

public TreeManagedBean() {
     rootAdmin.setData("Administrator");
     rootAccounts.setData("Accounts");
     rootOther.setData("Other");
     rootChangePwd.setData("Change Password");
     nodes.addChild(0, rootAdmin);
     nodes.addChild(1, rootAccounts);
     nodes.addChild(2, rootOther);
     nodes.addChild(3, rootChangePwd);
     TreeNodeImpl<String> childCompany = new TreeNodeImpl<String>();
     childCompany.setData("Company");
     rootAccounts.addChild(0, childCompany);
     TreeNodeImpl<String> childLicence = new TreeNodeImpl<String>();
     childLicence.setData("Licence Management");
     rootAccounts.addChild(1, childLicence);
     TreeNodeImpl<String> childFunction = new TreeNodeImpl<String>();
     childFunction.setData("Functions");
     rootAccounts.addChild(2, childFunction);
     TreeNodeImpl<String> childRoles = new TreeNodeImpl<String>();
     childRoles.setData("Roles");
     rootAccounts.addChild(3, childRoles);
     TreeNodeImpl<String> childCountry = new TreeNodeImpl<String>();
     childCountry.setData("Country");
     rootOther.addChild(0, childCountry);
    }     <rich:tree value="#{treeManagedBean.nodes}" var="node" adviseNodeOpened="true" >
     <rich:treeNode >
          <a4j:commandLink value=""></a4j:commandLink>
          <h:outputText value="#{node}"  />
     </rich:treeNode>
</rich:tree>
     My question is how can i make the nodes in the tree links, so i can click on a particular link and load a page,
Can someone help me on this

Hi Faissal,
here is my custom class. nodeName and nodeLink there.
public class TreeDomain {
    private String nodeName;
    private String nodeLink;
     //  getters and setters goes here
}and i gave
<rich:tree value="#{treeManagedBean.rootAccounts}" var="node">
     <rich:treeNode>
                    <h:commandLink action="#{node.treeLink}">
                         <h:outputText value="#{node.nodeName}"></h:outputText>
                    </h:commandLink>
     </rich:treeNode>
</rich:tree>and in the TreeManagedBean
        rootAdmin.setData("Administrator");
     rootAccounts.setData("Accounts");
     rootOther.setData("Other");
     rootChangePwd.setData("Change Password");
     nodes.addChild(0, rootAdmin);
     nodes.addChild(1, rootAccounts);
     nodes.addChild(2, rootOther);
     nodes.addChild(3, rootChangePwd);
     TreeNodeImpl<TreeDomain> childCompany = new TreeNodeImpl<TreeDomain>();
     treeDomain = new TreeDomain();
     treeDomain.setNodeName("Company");
     treeDomain.setTreeLink("company.faces");
     childCompany.setData(treeDomain);
     rootAccounts.addChild(0, childCompany);but its not working... have i done some mistake here?

Similar Messages

  • Add links to tree

    hi everyone,
    i had download the tree example and succefully running...
    i wanted that application to modify.. like that...
    if i click on the link it should open an application in the view area....
    i am intergrating all my webdynpro projects in that tree...
    so all the links i have to keep as tree.. if i click on that corresponding application will display in the view area.....
    could anybody help me out in this...
    thanku

    could any body help me out
    i am unable to give link to url if i click on the link in tree....

  • How to link a tree to a ALV table

    Hi Experts,
    I have a tree node on the left side of my display.
    Now according to the user selection on the tree node,
    i need to populate the ALV table on the right.
    That means selected value by the user is the input parameter
    and should fetch the corresponding data accordingly and displays on the ALV table on the right.
    Please advise.
    Regards,
    Chitrasen

    Hi,
    Define the ON_FUNCTION event in the view controller. This is an event of your ALV.  In the coding of this event handler method put code like:
    METHOD on_select .
      DATA: temp TYPE string.
      temp = r_param->id.
      IF temp = 'LBUTTON'.
        wd_comp_controller->get_selected_line_via lead_selection( ).
      ENDIF.
    ENDMETHOD.
    What also needed is next code to be placed in method wdoinit of the component controller:
    METHOD wddoinit .
      DATA: l_ref_cmp_usage           TYPE REF TO if_wd_component_usage,
            l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table.
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
      wd_this->l_value = l_ref_interfacecontroller->get_model( ).
    *&- Specify the display type
      wd_this->l_value->if_salv_wd_table_settings~set_display_type(
                          if_salv_wd_c_table_settings=>display_type_hierarchy ).
      wd_this->l_value->if_salv_wd_table_settings~set_enabled( abap_true ).
    *&- Specify a hierarchy columns Bucket, RE, PE and AE
      lr_column = wd_this->l_value->if_salv_wd_column_settings~get_column( 'BUCKET' ).
      lr_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
      lr_column = wd_this->l_value->if_salv_wd_column_settings~get_column( 'RE' ).
      lr_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
      lr_column = wd_this->l_value->if_salv_wd_column_settings~get_column( 'PE' ).
      lr_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
      lr_column = wd_this->l_value->if_salv_wd_column_settings~get_column( 'AE' ).
      lr_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
    *&- Display data of the last hierarchy as leaf
      wd_this->l_value->if_salv_wd_table_hierarchy~set_last_hier_column_as_leaf( abap_true ).
    *&- Create function in toolbar
      DATA  lr_button TYPE REF TO cl_salv_wd_fe_button.
      DATA  button1 TYPE REF TO cl_salv_wd_function.
      CREATE OBJECT lr_button.
      lr_button->set_text( 'SELECT' ).
      button1 = wd_this->l_value->if_salv_wd_function_settings~create_function( id = 'LBUTTON' ).
      button1->set_editor( lr_button ).
    ENDMETHOD.
    Cheers, John

  • ¿How to link multiple mxml appear in a Tree in VDividedBox?

    I have a project with several mxml and asked how I can call them that when you click on the tree appears in VDividedBox, something like this but
    http://livedocs.adobe.com/flex/3/html/help.html?content=layouts_07.html
    So far I've looked, is that it is necessary for mxml components, however are still not as linked list tree with mxml I look at VDividedBox
    Attentive hope some help you can give me.

    use method add_node of the class Cl_gui_alv_tree to add a node to the tree.
    In case of root node the parameter lv_relat_key is passed as blank.In order to create further child nodes pass the node key of the parent as the relat key of the child and use the method again.
    Regards,
    Abhi

  • How to add link and image in oaf iprocurement stores page?

    Hi Every1,
    I have requirement to in iprocurement stores page. Already there are certain links ( a meaning full image+link ), by click on image or link it will take you to the
    required page.
    I need to add one more like that.
    How can i do this ?
    I know thru personalizations we can add links to the page, but how can i add image to that link. so that click of anyone will take to the req page.
    Thanks,
    Arun Peddi

    Hi,
    Here is one way of putting an image in the header:
    <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">     
          <fo:region-body margin="1in"/>
          <fo:region-before extent="1in" background-color="silver" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
             <fo:block height="150px" width="1024px" background-color="white" >
                 <fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
                 </fo:external-graphic>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
        </fo:flow>
      </fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
    Hope this helps.
    Thanks,
    Aakarsh
    Edited by: aakarsh on Apr 6, 2011 6:40 AM

  • How can I add a hyperlink to a PDF with OSX 10.9? The "Help" article says to use the "add link" feature under "edit." It's not there.

    How can I add a hyperlink to a PDF with OSX 10.9? The "Help" article says to use the "add link" feature under "edit." It's not there. I could add links w/ the previous OS. Time sensitive project.

    Which application are you using?
    Clinton

  • How to add link button in Query generator

    Hi,
    I am trying to add link button in Query reports. While the query is for system table it automatically gives columns with link button  but how to do this for user Tables.

    Hi,
    Even by standard, this is not possible only when you using UDO.
    You can create your form with Matrix, and use FlushToDataSource Method to load large amount of data inside. Now you can program the linked button click (et_MATRIX_LINK_PRESSED) by columns.
    Regards,
    J.

  • How to add linked button in grid?

    Hi,
    Does anyone know how to add linked button in a grid? I can't find it but i saw someone ask similar question but seems none of them works.
    Thanks a lot!
    P.S. For some reason, i can't use matrix because the data is from a SQL query.
    Lan

    Hi,
    as far as I know it is not possible, since this adjustment is made for the whole column. I have created a grid and I open the shown document by double clicking the row header. In the grid I can see if it is sales or purchase and so I use a workaround by opening the specific system form (e.g. sales invoice) in find mode and search the document by document number (also shown in the grid).
    Sample:
    oSBOapp.ActivateMenuItem("2053"); //sales invoice
    oForm = oSBOapp.Forms.ActiveForm;
    oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
    oEdit = (SAPbouiCOM.EditText)oForm.Items.Item("8").Specific;
    oEdit.Value = Convert.ToString(dNum);
    oForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular);
    By the click event, you get the specific row number. Hope it helps...
    Regards
    Sebastian

  • How can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?

    Hi,
    I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
    Kindly advice.
    Thanks
    Priya

    Special > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
    For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
    I've not often used a relative link, and not recently: the same source says
    folder levels are separated by a slash / even in Windows and Mac
    [relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
    [absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash.

  • How to add links and rollovers from an exported Edge Reflow HTML in Dreamweaver?

    Hi,
    Thanks to the very helpful community I have found the way to get my HTML file from Edge Reflow.
    Upon opening the HTML file in Dreamweaver, the CSS, Java scripts are wonderfully linked. However, I am not experienced enought to manipulate the divs to get a rollover or add links to the layout.
    Eg. Sticky Navigation bar on the top, how do you add rollovers and links?
    All help is very much appreciated.
    Thank you for your help in advance!

    Hi Chris,
    your plan for Reflow sounds good. Versioning is probably the most adaptable way to integrate it with the rest of the workflow.
    What I think is still missing, on the simple side, is link creation and management inside Reflow.
    Of course, considering you have just introduced multiple pages, this feature shouldn't be far...
    About Dreamweaver, I've been a faithful user for years but now it's definitely old for some uses.
    Just to say, if I open the responsive page I just created in Reflow with DWCC in Live View, something basic as background gradients are completely missing. Well, I'm not going to use it for this kind of work.
    Do you know for what DW is still a great tool? Email Newsletters, since they still have to respect old standards that no one else uses anymore.
    For all the rest I definitely prefer the editor/IDE way: SublimeText and other tools.
    They're faster, more apt to the task and, similarly to the Adobe Edge line of products, made with the same technologies they help to work with.
    In the future, who knows... Maybe, you should put in development a "Dreamweaver Edge" version and drop the old one, a little clunky even if recently revarnished  ;-)

  • How t o add Link with a button in jsp

    hi,
    I want to add link with a button in jsp. How will i do it? Is there anyone who can help me? Please help me.
    With Regards
    Bina

    Try this,
    <input type='button' onclick='window.location="a.html"'>

  • How can I add linked text boxes to Contents?

    I have a lot of sections in my chapters, and I think they are all coming in to the TOC, but the automatic text box doesn't have a blue tab, so I cannot add a new text box to continue showing the sections.  How can I make this show up? There's no layout I can manipulate for the TOC, so I cannot make the text editable, which is the suggestion that I have seen for regular linked text boxes.

    Hello,
    If you want to add image to it's background then you can select the SubMenu and use the fill option to fill an image to it.
    Make sure you uncheck "Edit together" option in Menu properties so that you can add different images to different submenus.
    And if you want to edit the text and add images to it, I would suggest you to use Manual menu. Where you can customize your own Menu and add links to the Menus and Submenus.
    Please have a look at the screenshot showing how to create Manual menu :
    Hope this helps.
    Regards,
    Sachin

  • How do I add links to my social media pages within Dreamweaver?

    how do I add links to my social media pages within Dreamweaver?

    As you would for any other link. What is the precise problem? Can you give us an example?

  • How to add Icon in Tree View in Forms 6.0 (URGENT..!)

    Hello All,
    I want to add icons in tree view (hierarchical tree) by using
    forms 6.0.
    So pls. help me to find out the solution for the same.
    thanks
    Pradeep
    null

    Pradeep (guest) wrote:
    : Hello All,
    : I want to add icons in tree view (hierarchical tree) by using
    : forms 6.0.
    : So pls. help me to find out the solution for the same.
    : thanks
    : Pradeep
    hello pradeep,
    for adding icons in the tree, u willhave to look closely to the
    data format for the tree.in the data format used for populating
    the tree we are supplying 5 fields. the state of the tree node
    (expanded or collapsed), the depth of the node w.r.t the parent
    node, the node value, the node label(what we see on the tree)
    and the node icon which we want to use. for the node icon we
    have to provide the entire path of the icon file. that's it.
    hope this will solve the problem
    null

  • How to add link in full screen email Lion?

    Hi all
    I've been using the full-screen versions of most apps since istalling Lion. Not perfect but I like being able to swipe between screens. However the email function in full screen doesn't allow you to add a link to your message. When you hit compose new message the toolbar functions don't drop down. Am I missing something here?
    thanks
    WG
    Ps - I also have had the Wifi problem which was resolved by setting up network again. Time Machine does seem to take longer to backup with Lion. Finally, also have problems with email where it can't send emails sometimes. None of these dealbreakers for me but hopefully new release version will deal with them!

    You should have a limited toolbar, but the add link button isn't part of it.
    You can add a link using the Edit menu (or cmd-k), or select text and right-click (Link>Add Link…)

Maybe you are looking for

  • Entering charct. values at the time of GR

    Hi All... We have a Issue regarding raw material receiptu2026 We r getting Ores (ROH) from different parties, they send test certificate with every lot. We need to enter the % of nickel or Chrome etc at the time of GR for PO. After that stock will mo

  • How do you track a photo book you purchased through aperture?

    I have made a photo book in aperture and I would like to find out the status of the order.  Does anyone know where I can find this?

  • How to integrate price list on a Purchase Order?

    Hi, Version : R12.1.3 I wanted to know how to use price list on a purchase order. I have created one price list but I am not able to use that, how could I use this. How to link Price list to the particular supplier. Thanks in advance. AmolA

  • Box Office Movie [BOM] is really good?

    Box Office Movie [BOM] is really good? yeah we know that watching movies is always fun for everyone so here is the box office movie streaming movies for everyone. Enjoy Watch 22 Jump Street Online Free http://www.codecademy.com/watchonlinemovie/codeb

  • List Report ( Join Query )

    I am developing list report and in that i have to use approximately 8-9 inner joins and according  to SAP we can use only 2-3 joins so is there any alternative of fetching data from multiple table without effecting performance, i am listing my query