Re: [struts-menu]xtree

Matt Raible <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Sounds like no one has done this.  You might look at the original
project this JavaScript Tree came from:

http://webfx.eae.net/dhtml/xtree/

Matt

On 9/29/05, Pablo Rito <[email protected]> wrote:
> Hi ! Has anyone modified  xtree.html so images that are set in ex:
>
>                 mc = new MenuComponent();
>                 mc.setName(node.getName());
>                 mc.setTitle("demo");
>                 mc.setImage(node.getImage());
>  Are show as icon on the folder tree, I have looked at the API but I
> cant make this work
>
>
> #macro( menuItem $menu $level )
>   ## set title
>   #set ($title = $displayer.getMessage($menu.title))
>   #set ($node = $menu.name)
>
>   #if ($level == 0)
>     var $node = new
> WebFXTree('$title'#if($menu.url),'$!menu.url','','$!menu.image',''#end);
>   #else
>     var $node = new
> WebFXTreeItem('$title'#if($menu.url),'$!menu.url','','$!menu.image',''#e
> nd);
>     ${menu.parent.name}.add($node);
>   #end
> #end
>
> #displayMenu($menu 0)
> document.write($menu.name);
>
> Best Regrds
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.