I've broken it down into a very basic example once you view this the third node will appear with a series of plus images.
-----------------------
Menu-Config.xml
-----------------------
<?xml version="1.0" encoding="UTF-8" ?>
<MenuConfig>
<Displayers>
<Displayer name="ListMenu" type="com.fgm.web.menu.displayer.ListMenuDisplayer"/>
</Displayers>
<Menus>
<Menu name="test1" title="test1" description="test" width="200">
<Item name="test2" title="test2" width="200">
<Item name="test3" title="test3" width="200">
<Item name="test4" title="test4" location="index.jsp" width="200"/>
</Item>
</Item>
</Menu>
</Menus>
</MenuConfig>
------------- JSP Code ------------- <%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>
<menu:useMenuDisplayer name="ListMenu"> <menu:displayMenu name="test1"/> </menu:useMenuDisplayer>
From: "Raible, Matt" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: Dynamic Tree Menus --- HELP!!! Date: Thu, 31 Jul 2003 09:22:04 -0600
I'm willing to help if you send me the code. Which Displayer are you using?
Matt
-----Original Message----- From: Pat Quinn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: Re: Dynamic Tree Menus --- HELP!!!
Is anyone out there working with dynamic HTML trees at the moment (i.e. displaying data loaded from a data base) as i'm pulling my hair out here at the moment.
I downloaded the source for Struts Menu and implemented a change to allow me
to place a java bean with my tree menu details into HttpSession rather than loading it from the menu xml file. Every thing works fine until i tried to add triple nested node to the tree and it totally screws up presentation i.e. The node image is repeatedly displayed. Its not due to my changes as i tested it in the latest stable version and it fails also to render with the same results.
I've also taken a look into using http://www.kobrix.com/ offering but their configuration requirements to integrate with struts seems abit too much for my liking.
Any suggestions, or should i just go find the JavaScript i require elsewhere
and wrap it with my own custom tag library....
>From: "Pat Quinn" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Dynamic Html Tree Menus - Java Beans. >Date: Thu, 31 Jul 2003 10:22:51 +0100 > >I'm looking for a tag library to aid the rendering of a Tree Menu using >session/request stored objects. >I want to included the menu data as a Java Bean in HttpSession for each >user and then use tag libs in my JSP's. I've looked into the StrutsMenu >Offering for Dynamic Menus but it loads menu data from an XML file. > >Any ideas or am i better off to develop my own custom tag lib? > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >
_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]