You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Letícia Álvares Barbalho <le...@gmail.com> on 2005/11/23 19:35:04 UTC
[May be off topic] struts-layout - treeview
Hello everyone,
I know I'm writing an off-topic question here, but I don't think there's any
better place to ask it, so I'll ask for your comprehension.
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:
<layout:menuItem key="Pessoas">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
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="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
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:
<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.
--
Letícia Álvares Barbalho
leticia.barbalho@gmail.com