wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rik rik <snake...@hotmail.com>
Subject RE: cannot render a menubar using menu2 package
Date Sun, 02 Dec 2007 15:12:11 GMT
Hi Doug,
thanks for your help, but I think that the problem is another...
The problem is caused by the rendering of the menu2.YuiMenuBar, because it calls VelocityJavascriptContributor
in the method
getMenuInit passing the file res/menubarinit.vm (below there is the url of the file)https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui/src/main/java/org/wicketstuff/yui/markup/html/menu2/res/menubarinit.vm
 
This file contains the reference to YAHOO.widget.MenuBar so I have the same previous javascript
error
It's strange that you haven't the same behaviour, maybe I have old or wrong classes, but I've
downloaded them from svn,
and for this reason I was curious to see menubar in action, to see the generated html
Thank you again
 
Rik
 



> Date: Sat, 1 Dec 2007 12:26:01 -0800> From: dougleeper@yahoo.com> To: users@wicket.apache.org>
Subject: RE: cannot render a menubar using menu2 package> > > Rik,> > Here
is what I have done to utilize the MenuBar. (Unfortunatley...this is> not available to
the public so I can't direct you to a public URL)> > In foo.html:> > <link
rel="stylesheet" type="text/css" href="/member/css/topNavMenu.css" />> > Menu Bar>
> > In my foo.java:> > YuiMenuBar menuBar = new YuiMenuBar( "menuBar", "topNavMenuBar"
);> > menuBar.addMenu( new PageAction( new Model("Home"), MemberHome.class ));> >
etc.> > In my topNavMenu.css:> > .topNavMenuBar .yuimenubar {> text-decoration:
none;> color: #FFFFFF;> background: #3C76B2;> font: 12px Arial,Helvetica,sans-serif;>
padding:1px;> }> > .topNavMenuBar .yuimenubaritem a.selected {> background: #4D99E6;>
}> > .topNavMenuBar .yuimenu .yuimenubaritem a.selected {> background: #3C76B2;>
}> > .topNavMenuBar .yuimenu {> text-decoration: none;> color: #FFFFFF;> background:
#4D99E6;> font: 12px Arial,Helvetica,sans-serif;> padding:1px;> }> > .topNavMenuBar
.yuimenubaritem {> text-decoration: none;> color: #FFFFFF;> background: #3C76B2;>
font: 12px Arial,Helvetica,sans-serif;> padding:1px;> }> > .topNavMenuBar .yuimenubaritemlabel
{> padding-right: 14px;> padding-left: 14px;> }> > .topNavMenuBar .yuimenuitemlabel
{> padding-right: 12px;> padding-left: 12px;> }> > .topNavMenuBar .yuimenu
ul {> padding-top: 5px;> padding-bottom: 5px;> }> > .topNavMenuBar .yuimenubar
li a {> zoom:1;> color: #FFFFFF;> text-decoration:none;> }> .topNavMenuBar
.yuimenu li.yuimenuitem {> color: #FFFFFF;> }> .topNavMenuBar .yuimenu li.selected
a.selected,> .yuimenubar li.selected a.selected{> background: #3C76B2;> }> >
> As you can see, I did not add any YUI menu files directly in the HTML. I> let the
framework add the needed YUI files. The only specific menu file was> the css to adjust
to my sites look/feel.> > Let me know if you have any other problems.> > - Doug>
> > -- > View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14109176>
Sent from the Wicket - User mailing list archive at Nabble.com.> > > --------------------------------------------------------------------->
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org> For additional commands, e-mail:
users-help@wicket.apache.org> 
_________________________________________________________________
Conosci Doretta? Contattala, รจ ora su Messenger!
http://www.doretta82.it/banner/index.html
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message