struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Zakarian" <jzakar...@welchpartners.com>
Subject StrutsMenu Coolmenu4 images
Date Wed, 19 Mar 2003 13:12:15 GMT
Hi,

 

I'm trying to use images with coolmenu4. I've added
image="images/save.gif" to 

<Menu> and to <Item> lines but it doesn't load.  I checked the
CoolMenuDisplayer4.java

code and it contains the following;

 

    private static final String TOP_IMAGE = "cmTopMenuImage";

    private static final String SUB_IMAGE = "cmSubMenuImage";

 

cmTopMenuImage and cmSubMenuImage are found in the coolmenu4-config.js

i.e. 

 

// Struts Menu specific javascript variables

 

// menu arrows

cmTopMenuImage='&nbsp;&nbsp;&nbsp;<img src="images/Rarrow.gif"
class="menuArrows" />'

cmSubMenuImage='&nbsp;&nbsp;&nbsp;<img src="images/Rarrow.gif"
class="menuArrows" />'

 

Also CoolMenuDisplayer4.java only loads the following arguments

 

    protected String[] getArgs(MenuComponent menu) {

        String[] args = new String[8];

        args[0] = menu.getName();

        args[1] = getParentName(menu);

        args[2] = getTitle(menu);

        args[3] = (menu.getLocation() == null)?EMPTY:menu.getLocation();

        args[4] = getTarget(menu); 

        args[5] = (menu.getOnClick() == null)?EMPTY:menu.getOnClick();

        args[6] = (menu.getOnMouseOver() ==
null)?EMPTY:menu.getOnMouseOver();

        args[7] = (menu.getOnMouseOut() ==
null)?EMPTY:menu.getOnMouseOut();     

 

        return args;

    }

 

How can I get images to load for my top and sub menu items?

 

Thanks,

 

Jack.

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message