Re: Two menu types at one page

Arnljot Arntsen <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Yes,

I think it would make sense to adopt the *.js files so that there are
no method duplication (always use cookies.js and don't have them in
<style>.js).

Furthermore a quick fix could be to do like you say:
<div id="mymenu">
<menu:displaymenu....
</div>

And then tweak the init methods in <style>.js to take "mymenu" as an
argument and then look up the "menuList" node within that tree.

It's a little work, but doesn't require any change to the "core".

Thanks for your prompt reply. Btw, I'm using Appfuse with Struts Menu :)


On 10/26/05, Matt Raible <[email protected]> wrote:
> If you wrap <div>s about both menus, it shouldn't be too hard to
> change the CSS to work with them accordingly.  I agree that the class
> names should be unique so you can put multiple menus on a single page.
>
> Matt
>
> On 10/26/05, Arnljot Arntsen <[email protected]> wrote:
> > Hi
> >
> > I'd like to use two different Displayers on one page,
> > ListMenuDisplayer and TabbedMenuDisplayer. And then have different
> > styles to them: expandableMenu.css and nicetabs.css
> >
> > Is this possible.
> >
> > I can't see a straight forward way to do this without changeing the
> > javascript for either of the two styles drastically.
> >
> > Cheers,
> > --
> > Arnljot Arntsen
> > www.arnljot.com
> >
> >
> > -------------------------------------------------------
> > 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
> > Visit http://www.jboss.com/services/certification for more information
> > _______________________________________________
> > struts-menu-user mailing list
> > struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
>
>
> -------------------------------------------------------
> 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
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


--
Arnljot Arntsen
www.arnljot.com


-------------------------------------------------------
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
Visit http://www.jboss.com/services/certification for more information
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.