RE: dynamic menus and tabbed menu

"Matt Raible" <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Organization Raible Designs, Inc.
Message-ID <[email protected]>
I added the following to the MenuRepository class:

    /**
     * Allows easy removal of a menu by its name.
     * @param name
     */
    public void removeMenu(String name) {
    	if (menus.containsKey(name)) {
    		menus.remove(getMenu(name));
        }
    }

Let me know if it works for you.

Matt

> -----Original Message-----
> From: struts-menu-user-admin-TtF/[email protected] 
> [mailto:struts-menu-user-admin-TtF/[email protected]] On Behalf Of 
> Lucia Sheehan
> Sent: Thursday, April 08, 2004 10:41 AM
> To: struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [struts-menu] dynamic menus and tabbed menu
> 
> 
> 
> 
> 
> 
> Hi
> 
> I've implemented the dynamic menus and as well as dynamically 
> creating a menu structure, I also need to dynamically add and 
> delete from the list. Currently the API doesn't seem to 
> support deletion of a menu?  is this something which can be added?
> 
> Also, I tried to use the tab menu, but found that when I set 
> the target, the page displayed correctly, but the selected 
> tab never got highlighted - any suggestions?
> 
> Regards
> 
> Lucia
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of GenToo technologies. Learn everything from 
> fundamentals to system 
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user-TtF/[email protected] 
> https://lists.sf.net/lists/listinfo/struts-> menu-user
>
struts-menu-2.2.jar (application/octet-stream, 52.9 KB) - not displayed
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.