Solved

how to display treeview in jsp

Posted on 2007-03-31
4
1,885 Views
Last Modified: 2011-09-20
Hi Experts,

I have a JSP page which will display a list in each column.
I have a BL list and Container List , 1 BL can contain 1 or morethan 1 containter.

I need to display these items in treeview using Javascript or JSP.

Ex:  +BL
       +BL
       +BL

and ones the user clicks on + sign
then it should be like

        -BL
           CONTAINER
           CONTAINER
           CONTAINER
       +BL
       +BL


My Jsp code looks like

<display:column title="BL Number" property="blNumber" group="1" align="left" />
<display:column title="Container Number" property="containerNumber" align="left"/>      

right this will display like

BL1  CONT1
BL1  CONT2
BL2  CONT1
BL2  CONT2
 etc.,


Thanks,
Ganne
0
Comment
Question by:gannev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Accepted Solution

by:
mukhtar2t earned 250 total points
ID: 18830838
0
 
LVL 17

Assisted Solution

by:gops1
gops1 earned 250 total points
ID: 18831562
Try out this simple demonstration:

<html>
      <head>
            <title>Script Demo Gops</title>
            <head>
                  <style>
                        ul{font-family:verdana;font-size:x-small;}
                        li{list-style-type:none;}
                        li ul{display:none;}
                        ul li{color:blue;text-decoration:underline;cursor:pointer}
                  </style>
                  <script type="text/javascript">
                        var oldMenu="";
                        function showHide(obj){
                              if(oldMenu) oldMenu.childNodes[1].style.display='none';
                              if(oldMenu==obj) {oldMenu=""; return true;}
                              obj.childNodes[1].style.display='block';
                              oldMenu=obj;
                        }
                  </script>
            </head>
<body>
<ul>
      <li onclick="showHide(this);">BL1
            <ul>
                  <li>Container 1 BL1
                  <li>Container 2 BL1
            </ul>
      </li>
      <li onclick="showHide(this);">BL2
            <ul>
                  <li>Container 1 BL2
                  <li>Container 2 BL2
            </ul>
      </li>
</ul>
</body>
</html>
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With Wordpress gaining more and more popularity not only as blogging platform but as a shopping or CMS solution, it's worth to know which plugins are the first ones to grab and integrate with your website. We will briefly go over the most useful plu…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question