CoolMenuDisplayer and target attribute

Damien GUERIN <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Organization Atos Origin - Systems Integration
Message-ID <[email protected]>
Hi,

i'm using the net.sf.navigator.displayer.CoolMenuDisplayer displayer for 
my menu and some items in my menu must have a particular target. So, my 
menu-config.xml is like this :
      <Menu name="Sheet" title="Sheet">
      <Item name="Sheet.SendMail" title="Sheet.SendMail" 
toolTip="Sheet.SendMail" roles="notImplemented"/>
      <Item name="Sheet.Export" title="Sheet.Export" toolTip="Sheet.Export">
              <Item name="Sheet.Export.Excel" title="Sheet.Export.Excel" 
toolTip="Sheet.Export.Excel" action="ExcelExportSheet" target="childFrame"/>
              <Item name="Sheet.Export.CSV" title="Sheet.Export.CSV" 
toolTip="Sheet.Export.CSV" action="CSVExportSheet" target="childFrame"/>
              <Item name="Sheet.Export.PDF" title="Sheet.Export.PDF" 
toolTip="Sheet.Export.PDF" action="PDFExportSheet" target="childFrame"/>
              <Item name="Sheet.Export.XML" title="Sheet.Export.XML" 
toolTip="Sheet.Export.XML" action="XMLExportSheet" target="childFrame"/>
      </Item>     
      </Menu> 

the javascript generated is :

oCMenu.makeMenu('Sheet','','Sheet'+cmTopMenuImage+'','','','','','','',cmBGColorOff,cmBGColorOn,cmTxtColor,cmHoverColor,'')
oCMenu.makeMenu('Sheet.SendMail','Sheet','Mail sending','','','','','','',cmDisBGColorOff,cmDisBGColorOn,cmDisTxtColor,cmDisHoverColor,'')
oCMenu.makeMenu('Sheet.Export','Sheet','Export'+cmSubMenuImage+'','','','','','','',cmBGColorOff,cmBGColorOn,cmTxtColor,cmHoverColor,'')
oCMenu.makeMenu('Sheet.Export.Excel','Sheet.Export','Excel','/topgdm-web/ExcelExportSheet.do','','','','','',cmBGColorOff,cmBGColorOn,cmTxtColor,cmHoverColor,'')
oCMenu.makeMenu('Sheet.Export.CSV','Sheet.Export','CSV','/topgdm-web/CSVExportSheet.do','','','','','',cmBGColorOff,cmBGColorOn,cmTxtColor,cmHoverColor,'')
oCMenu.makeMenu('Sheet.Export.PDF','Sheet.Export','PDF','/topgdm-web/PDFExportSheet.do','','','','','',cmBGColorOff,cmBGColorOn,cmTxtColor,cmHoverColor,'')
oCMenu.makeMenu('Sheet.Export.XML','Sheet.Export','XML','/topgdm-web/XMLExportSheet.do','','','','','',cmBGColorOff,cmBGColorOn,cmTxtColor,cmHoverColor,'')

My problem is the target specified in my menu-config.xml is lost. Indeed, the fifth argument doesn't exist...
If I use net.sf.navigator.displayer.SimpleMenuDisplayer display it works.

Please, help me!
  	




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
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.