Tree view JSp

hai all,
i am new to XML. I have the requirement like
I have a tree structure with parent and child
It goes upto 30000 records.
User enters the text and presses submit button the
coresponding text has to be searched in the tree structure
and that has to be made selected.
all the parent node which has the text as child has also
to be populated in the List box. how can I do this.
Is it possible to do this in client side ?
I want help ?
thanks
sundar

Internet Explorer 5 can do it on the client-side. it uses the Active-X plugin as a DOM parser....and you can use javascript with it.

Similar Messages

  • Urgent help, Tree Viewer JSP

    Has anyone gotten the tree viewer bean to work on a JSP? If so, please give tips on it, or an example of table would be appreciated. I keep getting an error message that my row-set browser is not self-refferencial.
    Thanks

    hi vidyut, thanks for the help. was juz wondering. The file contents tt im supposed to read in and print out contains around 200 similar entries, meaning :
    MEASURE Waist_Full=33.19
    MEASURE Waist_Front=16.06
    MEASURE Waist_Back=17.12
    MEASURE Waist_Height_Front=38.82
    MEASURE Waist_Height_Back=39.73
    MEASURE Waist_Height_Left=39.28
    MEASURE Waist_Height_Right=39.28
    MEASURE Waist_Front_X=43.98
    MEASURE Waist_Back_X=35.04
    MEASURE Waist_Width=11.85
    MEASURE Shirt_Collar=14.88
    MEASURE Neck2Waist_Front=19.64so is the properties object stil the best method to use? To extract the whole string except MEASURE and '='?

  • How to design tree view in jsp

    Hi,
    New to jsp.How can i create a tree view in jsp.Just like mail.yahoo.com folders tree.Pls give me some code.
    Thanks

    you can try the following open source ,it supply an open source Treebean and some examples www.CoolServlets.com Check out "CSTreeBean"

  • Pragmaticobjects : Tree view in the JSP page

    I have to understand Tree view Generation in the JSP page by using pragmaticobjects jar file.
    Can any body please help me from where I got the details of pragmaticobjects.
    I am not able to fined appropriate link in Google.
    com.pragmaticobjects.taglibs.tree.util some of the used package .

    a tree model
    wrap <ul> <ul> around all his childeren + wrap the String representation with <li> </li>
    that should provide you with the structure in html.
    <ol class="tree">
    <li>parent
      <ul>
       <li>child1.1
        <ul>
         <li>child1.1.2</li>
         <li>child1.1.2</li>
        </ul>
       </li>
       <li>child1.2
        <ul>
         <li>child1.2.1</li>
         <li>child1.2.2</li>
        </ul>
       </li>
      </ul>
    </li>
    <ul>then it's css time
    <html>
    <head>
    <style>
    <!--
    .tree {
    list-style-type: none;
    list-style-image: none;
    list-style-position: outside;
    .tree ul {
    margin: 0em;
    padding: 0em;
    .tree  li{
    border: 1px black solid;
    text-align: center;
    float: left;
    -->
    </style>
    </head>
    <body>
    <ul class="tree">
    <li>parent
      <ul>
       <li>child1.1
        <ul>
         <li>child1.1.2</li>
         <li>child1.1.2</li>
        </ul>
       </li>
       <li>child1.2
        <ul>
         <li>child1.2.1</li>
         <li>child1.2.2</li>
        </ul>
       </li>
      </ul>
    </li>
    <ul>
    </body>
    </html>from here well there are differend solutions, but I think a little too CSS orientated to discuss it here. if you need more details email I'm not sure if I check this topic again.
    Mr_Light
    stuurff [at] hotmail.com

  • How to display an xml file contents in jsp as tree view

    hi,
    Iam trying to read an xml file and display the structure in jsp as tree view, can any one help me

    Use a [XML or DOM parser|http://java-source.net/open-source/xml-parsers] to read a XML file into a tree structure of Java objects.
    Use the [Collections API|http://java.sun.com/docs/books/tutorial/collections/index.html] to get hold of the relevant elements in a tree structure.
    Use JSTL´s [c:forEach|http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html] tag to iterate over a Collection in JSP.
    Use HTML´s [<ul>/<li>|http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.2] or [<dl>/<dt>/<dd>|http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.3] tags to represent a tree in HTML.

  • Help! can i get a tree view component used in jsp ,urgent!!

    hello all
    can i get a tree view component can be used in jsp ,it gets children data from database only when user expand one node, and it must be able to add nodes or removes node by user,so i can do some post handler in my database.
    regards!

    Where did you get this tree view component?

  • Tree View through JSP and Java Script

    Hi,
    I am looking for code or ideas of a Tree Structure as shown in in the left side frame of admin console of Sun App server 7 on the browser. I need to create a tree structure which will work on the browser like it works on the Sun App Server 7 admin console. If you had any idea or code, please share with me. I would like to have some idea before I start building it. The tree will be build from the database. So any database design is also helpful. I am planning to have that tree using JSP and EJB.
    Please help. If you are not clear what I am looking for, then please drop a line in this forum, so that I can explain it fine.
    Thanks in advance.
    Amit

    You can use the JSP Tree Tag I have developed. This helps you both structuring the tree model itself + it takes care of displaying the tree in a nice way. You can change all HTML code used to display the tree. Also you can build trees dynamically instead of just displaying static trees. Take a look at it here:
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Kind Regards,
    Jakob Jenkov

  • Please Help(How to get RadioButtons in tree View)

    Hi.
    Sub/Requirement: How to implement RadioButtons in tree view with/without using xml file.
    I have a requirement like this i want to display RadioButton in tree view.
    I implemented tree same as which is given in sampleApplications.
    In this sampleApplications they implemted tree by using xml file.
    I also implemented tree by Generating xml file. In this xml file i get the values from the database. I am using <netui:tree > tag.
    Is it possible to implement tree without using xml file. I need to generate tree Dynamically.
    Please any one help me to come out with this solution.

    The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
    Do you actually have a class/object called Student?
    That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
    public class Student{
      String name;
      List classes;
      List subjects;
      List teachers;
      // appropriate getter/setter methods
    }Then you load each student, and populate its individual lists.
    That lets you pass the list of students, each student having its own lists for display.
    Hope this helps,
    evnafets

  • JSF tree view GUI component and tree node actions

    Hi,
    I am new in using JSF and have a problem with my simple test application.
    The application contains a tree view control with one static tree node and a separate text area. Clicking on the tree node shall fill the text area with the string 'hello'. Seems to be very simple, but it doesn't work.
    What did I do?
    First of all I use the Sun Java Studio Creator 2.
    By double clicking on the tree node in the design window of the IDE a method called treeNode1_action() was created. I also added the String text to the session bean. treeNode1_Action() does not more than setting text='hello' ( getSessionBean().setText('hello'); ).
    The jsp file contains the line
    <ui:textArea binding="#{Page1.textArea}" id="textArea" style="height: 192px; left: 360px; top: 48px; position: absolute; width: 456px" text="#{SessionBean1.text}"/>, so the text of the text area is bound to the session property 'text'.
    Running the application and clicking on the tree node does nothing except reloading the page (no 'hello' inside the text area).
    Using the debugger showed me that the bean property text is set correctly to 'hello', also after reloading the page.
    What did I do wrong?
    What do I have to do to display 'hello' in the text area?
    I would be glad for some good advice to solve my problem and looking forward for an answer.
    Regards from germany
    Matthias

    want to remove the green patch from the jsf tree componentas u said ,, it is COMPONENET so this is a pre-made creator component that u cant chnage its attributes ,,
    instead u can extract Theam.jar file and change the icons ,, u i didnt do it before ,, but u may be find what u want there,
    hope this will help
    good luck
    Mohammed

  • Tree view for the menu

    Hi
    I am trying to provide a tree view for a list of menu. When i was exploring, I came to know about a tag which uses as below.
    <%@ taglib uri="http://java.sun.com/jsf/demo/components" prefix="d" %>What jar file should I include in my lib? Is it possible to have tree menu with that? please let me know.

    Thanks for your response. Yes when i saw the web site, I am close to what I want. But I couldn't find many examples to proceed further. May be a silly question. I jsut copied the following code into my test.jsp file and when I run a file, I get a blank page.
    <risb:menuBar width="473px"> 
        <risb:menuItem id="jsfsites" value="JSF Sites"> 
            <risb:menuItem value="JSF RI Homepage" url="https://javaserverfaces.dev.java.net" /> 
            <risb:menuItem value="Glassfish" url="https://glassfish.dev.java.net" /> 
            <risb:menuItem id="subprojects" value="Sub Projects"> 
                <risb:menuItem value="JSFTemplating" url="https://jsftemplating.dev.java.net" /> 
                <risb:menuItem value="Facelets" url="https://facelets.dev.java.net" /> 
            </risb:menuItem> 
        </risb:menuItem> 
        <risb:menuItem id="devblogs" value="Developer Blogs"> 
            <risb:menuItem value="Ed Burns' Blog" url="http://weblogs.java.net/blog/edburns/" /> 
            <risb:menuItem value="Roger Kitain's Blog" url="http://weblogs.java.net/blog/rogerk/" /> 
            <risb:menuItem value="Ryan Lubke's Blog" url="http://blogs.sun.com/rlubke/" /> 
            <risb:menuItem value="Jacob Hookom's Blog #1" url="http://weblogs.java.net/blog/jhook/" /> 
            <risb:menuItem value="Jacob Hookom's Blog #2" url="http://hookom.blogspot.com" /> 
            <risb:menuItem value="Jason Lee's Blog" url="http://blogs.steeplesoft.com/javaserver-faces" /> 
        </risb:menuItem> 
    </risb:menuBar>  When i view the page source, I see it as below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:b="http://bethanyefree.org/jsf/facelets"
             xmlns:t="http://myfaces.apache.org/tomahawk"
             xmlns:c="http://java.sun.com/jsp/jstl/core"
             xmlns:jdt="http://www.jenia.org/jsf/dataTools"
             xmlns:s="http://myfaces.apache.org/sandbox"
             xmlns:jsfcomp="http://sf.net.jsfcomp.validator">
    <risb:tree id="foo"> 
        <risb:treeNode> 
            <f:facet name="label"><h:outputText value="Test 1"/></f:facet> 
            <risb:treeNode> 
                <f:facet name="label"><h:outputText value="Test 1-1"/></f:facet> 
                <risb:treeNode> 
                    <f:facet name="label"><h:outputText value="Test 1-1-1"/></f:facet> 
                </risb:treeNode> 
                <risb:treeNode> 
                    <f:facet name="label"><h:outputText value="Test 1-1-2"/></f:facet> 
                </risb:treeNode> 
                <risb:treeNode> 
                    <f:facet name="label"><h:outputText value="A test with one of these: '"/></f:facet> 
                </risb:treeNode> 
            </risb:treeNode> 
        </risb:treeNode> 
        <risb:treeNode> 
            <f:facet name="label"><h:outputText value="Test 2"/></f:facet> 
            <risb:treeNode> 
                <f:facet name="label"> 
                    <h:outputLink value="http://blogs.steeplesoft.com"> 
                        <h:graphicImage id="image" url="/download.jpg" /> 
                    </h:outputLink> 
                </f:facet> 
            </risb:treeNode> 
        </risb:treeNode> 
    </risb:tree>I must be missing some jar files and some including some tag directory. Could you please tell me whether I am going in a correct direction. Thnaks.

  • Graphical tree in JSP

    I wanna write a code that will allow users to make a tree structure at runtime, it must be a web based server site most preferably in JSP

    cotton.m,
    Unless you are planning to use an applet this won't be happening.Exactly and this is what happened to me when I tried to implement table tree in jsp and javascript, after several approach; it turn out the is no way of controlling the view; then I moved to build the Report based on applet
    You don't seem to be aware that JSP code executes on the server. And produces something like HTML. Which is then viewed in the browser.Yes and It is not easy to handle the event on the browser to the server; especially if you want to use one component from Struts or any rich client interface framwork, you will end up adding the whole libraries and different configurations etc.. so there is not light weight approach to extract what you need from these frame work (ZK, Struts, Myfaces etc..)
    Regards,
    Alan Mehio
    London,UK

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    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 ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    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;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • A tree-view in HTML page with nodes generated with java script in run time is not visible in the UI Automation Tree. Need Help

    I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
    <iframe>
    <table>
    <tr>
    <td>
    <treeview id="tv1"></treeview>
    </td>
    </tr>
    </table>
    </iframe>
    In UIA, i am able to traverse till the tree view but not able to see it.
    I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement. 
    I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element. 
    i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
    But trying the reverse way like navigating from root element to tree node, was not getting the element for me. 
    Please help me with suggestions or inputs to resolve this issue. 

    Thanks Bernard,
    It works fine with JInitiator but not working with
    the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
    i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
    Thx and Regards
    dkklau

  • How to create a tree view in adobe configurator

    Hi
              How to create a tree view in adobe configurator
    Thanks 

    Please, can you explain what you mean exactly?

  • How to populate list in tree view  dynamically

    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
    InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

Maybe you are looking for