I've been running "mvn -o" for a while, but didn't today and noticed a
change in behaviour for the menu builder (1.1 SNAPSHOT).   I'm seeing
all my menus being given the selected item class, not just the one
that's selected for the page you're on.  I'm using...

<lift:Menu.builder li_item:class="current_tab" />

I've cut my site map down to this...

val menus = Menu(Loc("one", new Link("index" :: Nil, false), "Page 1")) ::
                    Menu(Loc("two", new Link("index2" :: Nil, false), "Page 
2")) :: Nil

 LiftRules.setSiteMap(SiteMap(menus:_*))

...and I see the following output:

<ul><li class="current_tab"><a href="/index">Page 1</a></li><li
class="current_tab"><span>Page 2</span></li></ul>

I'd expect only one of the li elements to have the class attribute.

Am I doing something wrong here?

Thank you
Richard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to