[struts-menu]xtree

"Pablo Rito" <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
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
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.