Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

struts-layout: treeview

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
Hello everyone,

I have a webapp that uses treeview from struts-layout. It is working perfectly and I'm happy with it.
The thing is that now I was required to put small swf files on the treenodes. Each treenode would be a swf file, which is simply a box with the name of the system module, with some flash effects.

I'm trying to do it like this:

Code:
               <layout:menuItem key="Pessoas">
                      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"[/URL] width="468" height="60">
                          <param name=movie value="/AugeProducao/flash/Pessoas_up.swf">
                          <param name=quality value=high>
                          <embed src="/AugeProducao/flash/Pessoas_up.swf" quality=high pluginspage="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"[/URL] type="application/x-shockwave-flash" width="213" height="23"></embed>
                      </object>        
                  <layout:menuItem key="Fornecedores" link="/AugeProducao/VerFornecedor.do" target="topFrame"></layout:menuItem>	
            </layout:menuItem>

Not working, though. The swf appears up in the page, above the tree. And the tree appears normally below, with the texts.

Is there any way of making a swf file a node of the tree? That would be really good.

If that is not possible, is it possible to show images (like gifs) as treenodes, instead of the text? I tried to do it like this:

Code:
               <layout:menuItem key="Pessoas" image="/AugeProducao/imagens/botao_ok.jpg">

Also didn't work. Maybe there's any other tag required?


If you have done this before or know how to do is, please answer.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top