I think I've fixed my bone-headed attempt to fix another issue.

On Tue, Aug 25, 2009 at 5:48 AM, Richard Dallaway <[email protected]>wrote:

>
> 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
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

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

Reply via email to