RE: cannot render a menubar using menu2 package
The trick to solve the problem is to add getMarkupSettings().setStripWicketTags(true); in the method init() of the webapp, as indicated by Doug Thanks Doug! Rik > From: [EMAIL PROTECTED]> To: users@wicket.apache.org> Subject: RE: cannot > render a menubar using menu2 package> Date: Wed, 5 Dec 2007 15:07:56 +> > > Hi Doug,> I've created a simple menu with menu2 and on Internet Explorer it > works perfectly.> But I have a problem with Firefox, because the submenus are > not displayed, and the little symbol (the down pointing arrow right side the > menu) is not displayed, too.> The strange thing is that the MenuBar2Page > wicket example works properly, because the submenus are correctly displayed > on Firefox, too.> The sources of the generated html seem equals (the > references to the scripts are the same), but using firebug the only > difference I noticed is that MenuBar2Page > there is a request of map.gif, > and this request is not present calling my page.> Maybe I'm making another > error, but I don't understand where I'm going wrong...> Regards> > Rik> > > > > > Date: Mon, 3 Dec 2007 10:14:20 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 > package> > > Fantastic!> > I was getting a little nervous there for a > second.> > Let me know if you have any problems/thoughts on menu2. Not sure > how many> are using it but my experience has been great (of course ;-)> > - > Doug> -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14135545> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> > > _> Scarica > GRATIS 30 emoticon per Messenger!> > http://www.emoticons-livemessenger.com/pages/msnit/index.htm _ Scarica GRATIS le emoticon della tua squadra del cuore e il calendario di serie A! http://www.emoticons-livemessenger.com/pages/msnitcalcio/index.htm
Re: cannot render a menubar using menu2 package
James, I guess menu2 currently requires a strip of the wicket tags. I have my application strip the tags so I never noticed. Any example I should look at to fix this? - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14185165 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Hi Doug, I've created a simple menu with menu2 and on Internet Explorer it works perfectly. But I have a problem with Firefox, because the submenus are not displayed, and the little symbol (the down pointing arrow right side the menu) is not displayed, too. The strange thing is that the MenuBar2Page wicket example works properly, because the submenus are correctly displayed on Firefox, too. The sources of the generated html seem equals (the references to the scripts are the same), but using firebug the only difference I noticed is that MenuBar2Page there is a request of map.gif, and this request is not present calling my page. Maybe I'm making another error, but I don't understand where I'm going wrong... Regards Rik > Date: Mon, 3 Dec 2007 10:14:20 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 > package> > > Fantastic!> > I was getting a little nervous there for a > second.> > Let me know if you have any problems/thoughts on menu2. Not sure > how many> are using it but my experience has been great (of course ;-)> > - > Doug> -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14135545> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Scarica GRATIS 30 emoticon per Messenger! http://www.emoticons-livemessenger.com/pages/msnit/index.htm
Re: cannot render a menubar using menu2 package
Hi Doug, We definitely don't want to require users to strip wicket tags, if that still needs to be done. I think we did that just to get it working. I thought setRenderBodyOnly was enough, but if we still have issues we should add in a MarkupFilter or use a Transformer. If menu2 only works with stripping wicket tags, then we should fix it. I need to get back in the game so we can dump menu and elevate menu2 to its place as the one and only menu (I've been in a c++ house of pain for the past couple of months) best, jim On Dec 3, 2007 12:15 PM, Doug Leeper <[EMAIL PROTECTED]> wrote: > > James, > > I was not aware of the issue (or if I was...I forgot) With this in > mind...do I need to change the menu2 impl? > > - Doug > -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14135575 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot render a menubar using menu2 package
James, I was not aware of the issue (or if I was...I forgot) With this in mind...do I need to change the menu2 impl? - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14135575 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Fantastic! I was getting a little nervous there for a second. Let me know if you have any problems/thoughts on menu2. Not sure how many are using it but my experience has been great (of course ;-) - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14135545 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Doug, thank you for your help, you're right, it doesn't make sense, because it was my fault! I didn't use maven, now I've used it and all is working properly I simply used the informations in the pom under https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui-examples/pom.xml and the menu is now correctly renderered Thank you very much for all Rik > Date: Mon, 3 Dec 2007 08:49:18 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 > package> > > Rik,> > This doesn't make sense...it should work. Not that it > matters...but want to> ask anyway...are you executing the wicket examples > within Eclipse? If so,> please verify that your classpath is setup properly > (looking for Wicket> 1.3.x...preferably the latest...TRUNK/SNAPSHOT/rc1)> > I > am assuming that you are still getting YAHOO not found. This indicates> that > the proper file has not been found. Also, there nuances with YUI in> the > order of the files retrieved in the Browser. Wicket I know for a fact> > handles this correctly. Could you double check the outputted HTML to> ensure > the links are correct (copy/paste into a browser). If any are 404,> then the > link formation is incorrect.> > What might be best is to have you send me > your example (quick start if> possible) to reproduce your error on my end. > Otherwise...I am grasping at> straws here.> > - Doug> -- > View this message > in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14133768> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Scarica GRATIS 30 emoticon per Messenger! http://www.emoticons-livemessenger.com/pages/msnit/index.htm
Re: cannot render a menubar using menu2 package
A quickstart attached to jira would be most appreciated. http://wicketstuff.org/jira/browse/WSYUI. Yui menu's distaste for wicket tags has been a long standing issue. To get around it at first, we did tMarkupSettings().setStripWicketTags(true). But then I thought that was changed to calling setRenderBodyOnly on the components? If this isn't working, maybe we need to hack up a markup filter to have done with it once and for all. On Dec 3, 2007 10:49 AM, Doug Leeper <[EMAIL PROTECTED]> wrote: > > Rik, > > This doesn't make sense...it should work. Not that it matters...but want to > ask anyway...are you executing the wicket examples within Eclipse? If so, > please verify that your classpath is setup properly (looking for Wicket > 1.3.x...preferably the latest...TRUNK/SNAPSHOT/rc1) > > I am assuming that you are still getting YAHOO not found. This indicates > that the proper file has not been found. Also, there nuances with YUI in > the order of the files retrieved in the Browser. Wicket I know for a fact > handles this correctly. Could you double check the outputted HTML to > ensure the links are correct (copy/paste into a browser). If any are 404, > then the link formation is incorrect. > > What might be best is to have you send me your example (quick start if > possible) to reproduce your error on my end. Otherwise...I am grasping at > straws here. > > - Doug > -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14133768 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Rik, This doesn't make sense...it should work. Not that it matters...but want to ask anyway...are you executing the wicket examples within Eclipse? If so, please verify that your classpath is setup properly (looking for Wicket 1.3.x...preferably the latest...TRUNK/SNAPSHOT/rc1) I am assuming that you are still getting YAHOO not found. This indicates that the proper file has not been found. Also, there nuances with YUI in the order of the files retrieved in the Browser. Wicket I know for a fact handles this correctly. Could you double check the outputted HTML to ensure the links are correct (copy/paste into a browser). If any are 404, then the link formation is incorrect. What might be best is to have you send me your example (quick start if possible) to reproduce your error on my end. Otherwise...I am grasping at straws here. - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14133768 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Send along the credentials and link to the qa server please. -Original Message- From: rik rik [mailto:[EMAIL PROTECTED] Sent: Monday, December 03, 2007 10:46 AM To: users@wicket.apache.org Subject: RE: cannot render a menubar using menu2 package Hi, I made these steps: 1) svn checkout from this path https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-c ontrib-yui-examples/src/main/java/org/wicketstuff/yui/examples 2) add style.css to my webapp root 2) configure web.xml in my webapp to point to org.wicketstuff.yui.examples.pages.YuiApplication 3) click on MenuBar2Page I have the same javascript error "YAHOO is not defined", even if in the WicketExampleApplication the method init contains "getMarkupSettings().setStripWicketTags(true)" I hope this helps Rik > Date: Mon, 3 Dec 2007 05:58:09 -0800> From: [EMAIL PROTECTED]> To: users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 package> > > Correction. It is not the wicket code that is having a problem...it is the> YUI code that does not like the wicket:id tags. All the wicket code (menu2)> does is create the html that YUI recognizes. At the browser, there is no> wicket stuff going on.> > As far what the problem is with regards to the wicket:id tags...that is> going to be tough to debug. I haven't debugged javascript code before and> not sure what "good" debugger there is to do this. However, I will take a> look to see if anyone else in the YUI community has had problems.> > Did you get the wicketstuff examples to work? I checked in the application> class with the appropriate setting change. That should work for you and> serve as a working example.> > - Doug> -- > View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14130319> Sent from the Wicket - User mailing list archive at Nabble.com.> > > -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> _ Conosci Doretta? Contattala, è ora su Messenger! http://www.doretta82.it/banner/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Hi, I made these steps: 1) svn checkout from this path https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui-examples/src/main/java/org/wicketstuff/yui/examples 2) add style.css to my webapp root 2) configure web.xml in my webapp to point to org.wicketstuff.yui.examples.pages.YuiApplication 3) click on MenuBar2Page I have the same javascript error "YAHOO is not defined", even if in the WicketExampleApplication the method init contains "getMarkupSettings().setStripWicketTags(true)" I hope this helps Rik > Date: Mon, 3 Dec 2007 05:58:09 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 > package> > > Correction. It is not the wicket code that is having a > problem...it is the> YUI code that does not like the wicket:id tags. All the > wicket code (menu2)> does is create the html that YUI recognizes. At the > browser, there is no> wicket stuff going on.> > As far what the problem is > with regards to the wicket:id tags...that is> going to be tough to debug. I > haven't debugged javascript code before and> not sure what "good" debugger > there is to do this. However, I will take a> look to see if anyone else in > the YUI community has had problems.> > Did you get the wicketstuff examples > to work? I checked in the application> class with the appropriate setting > change. That should work for you and> serve as a working example.> > - Doug> > -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14130319> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Conosci Doretta? Contattala, è ora su Messenger! http://www.doretta82.it/banner/index.html
RE: cannot render a menubar using menu2 package
Correction. It is not the wicket code that is having a problem...it is the YUI code that does not like the wicket:id tags. All the wicket code (menu2) does is create the html that YUI recognizes. At the browser, there is no wicket stuff going on. As far what the problem is with regards to the wicket:id tags...that is going to be tough to debug. I haven't debugged javascript code before and not sure what "good" debugger there is to do this. However, I will take a look to see if anyone else in the YUI community has had problems. Did you get the wicketstuff examples to work? I checked in the application class with the appropriate setting change. That should work for you and serve as a working example. - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14130319 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Hi Doug, ok, so the common point is that the code on wicketstuff doesn't work properly, now we should understand why, if it is possible :-) I put the code you suggested into the init() function of my webapplication class, but nothing has changed, because in the rendered html I continue to have the reference to YAHOO.widget.MenuBar But for you is the same? Because I didn't yet understood if the widget is mandatory or not to correctly render the page. About this point, I copied the renderered html to another file, and I made some attempts leaving and removing the script including the YAHOO.widget.MenuBar, and nothing has changed in the rendering, the only difference is that the javascript error is not shown, but the menubar is not displayed... I'm curious to know if with your previous version the rendered html contained the widget, and in which way it could work, because I'm searching in the svn repository, and, as you said, nothing seems has changed in the code, because the YuiMenuBar contains the reference to menubarinit.vm from the first checkin, and the menubarinit.vm contains the reference to YAHOO.widget.MenuBar from the first checkin, too. I hope we can reach the solution... Rik > Date: Sun, 2 Dec 2007 15:20:30 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 > package> > > Rik,> > Ok...I see where you are having problems. I updated my > local version of> wicket-contrib-yui and wicketstuff-yui-examples and ran the > example> application. I expected it to work but didn't. I saw on the update > that> some files were changed and checked to see if these changes had any > affect> but they didn't.> > I then made sure the YUI resources were > correct...and they were.> > The final thing I did was to have the example > application strip the wicket> tags since I saw all the wicket tags in the > source.> > getMarkupSettings().setStripWicketTags(true);> > in the init() > function.> > and what do you know it works like a charm. Why this is so...I > don't know. > It worked when I checked everything in Sept and haven't touched > it since.> > In summary...I would make sure you strip the wicket tags in your > application> as noted above. If this still doesn't work for you, I will have > to> investigate so more.> > Hope this helps.> > - Doug> -- > View this > message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14121442> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Scarica GRATIS 30 emoticon per Messenger! http://www.emoticons-livemessenger.com/pages/msnit/index.htm
RE: cannot render a menubar using menu2 package
Rik, Ok...I see where you are having problems. I updated my local version of wicket-contrib-yui and wicketstuff-yui-examples and ran the example application. I expected it to work but didn't. I saw on the update that some files were changed and checked to see if these changes had any affect but they didn't. I then made sure the YUI resources were correct...and they were. The final thing I did was to have the example application strip the wicket tags since I saw all the wicket tags in the source. getMarkupSettings().setStripWicketTags(true); in the init() function. and what do you know it works like a charm. Why this is so...I don't know. It worked when I checked everything in Sept and haven't touched it since. In summary...I would make sure you strip the wicket tags in your application as noted above. If this still doesn't work for you, I will have to investigate so more. Hope this helps. - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14121442 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
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: [EMAIL PROTECTED]> 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:> > 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: #FF;> 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: #FF;> > background: #4D99E6;> font: 12px Arial,Helvetica,sans-serif;> padding:1px;> > }> > .topNavMenuBar .yuimenubaritem {> text-decoration: none;> color: > #FF;> 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: #FF;> text-decoration:none;> }> .topNavMenuBar > .yuimenu li.yuimenuitem {> color: #FF;> }> .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: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Conosci Doretta? Contattala, è ora su Messenger! http://www.doretta82.it/banner/index.html
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: 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: #FF; 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: #FF; background: #4D99E6; font: 12px Arial,Helvetica,sans-serif; padding:1px; } .topNavMenuBar .yuimenubaritem { text-decoration: none; color: #FF; 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: #FF; text-decoration:none; } .topNavMenuBar .yuimenu li.yuimenuitem { color: #FF; } .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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
Hi James, I've included the yui libraries because without them I have the javascript error YAHOO is undefined, because into the resulting html there is a reference to YAHOO.widget.MenuBar So including the yui js the error is not shown, but nothing has changed Regards Rik > Date: Fri, 30 Nov 2007 18:21:57 -0600> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: Re: cannot render a menubar using menu2 > package> > rik rik,> you don't need to include the yui libraries. YuiMenuBar > will do that> automatically. Remove them from your html and everything should > work> fine.> > best,> jim> > On Nov 30, 2007 3:58 AM, rik rik <[EMAIL > PROTECTED]> wrote:> > Hi to all,> > I've downloaded the sources of menu2 from > svn, but I'm not able to make it working properly, because the page is not > correctly rendered> > My code (very simple) is this> >> > YuiMenuBar > menubar=new YuiMenuBar("menubar","menubar");> > YuiMenuBarItem > fileitem=menubar.addMenu("file");> > YuiMenuBarItem > edititem=menubar.addMenu("edit");> > add(menubar);> >> > and this is the > html> >> > > > > > type="text/javascript">> > type="text/javascript">> > type="text/javascript">> > type="text/javascript">> > href="menu.css"/>> > > > menu> > > > >> > The js files have been downloaded from the yui site, and they > are correctly referenced from the html> > Where am I going wrong?> > Thanks> > >> > Rik> >> > > _> > > Organizza le tue foto e condividile con i tuoi amici con Raccolta foto di > Windows Live!> > http://www.windowslive.it> > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Scarica GRATIS le emoticon della tua squadra del cuore e il calendario di serie A! http://www.emoticons-livemessenger.com/pages/msnitcalcio/index.htm
RE: cannot render a menubar using menu2 package
Hi Doug, I've seen the examples indicated by you, but the problem is that also they are not correctly rendered... I've tried using the style.css found in resources, but also in this case the render is not correct, the result is like the normal in html, it seems that the css is not properly used I've downloaded the html and java files and I've put them in my wicket webapp, I don't understand why it doesn't work Can you please give me an url with this examples in action? Maybe I can understand where is my fault... About the name menu2, I already knew the reason, I've read it into another post, it's not a problem, I can continue to use menu2 till you and the others will decide what to do with it Thanks, bye Rik > Date: Fri, 30 Nov 2007 10:22:15 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: Re: cannot render a menubar using menu2 > package> > > Rik,> > I am the primary author on this. > > Have you taken a > look at the examples in wicketstuff-yui-examples? I have> created examples > for the Menu, MenuBar, and ContextMenu for menu2 package. > > You may > ask...why menu2...b/c menu was taken and this iteration was> completely > revamped. The original author of menu (James McLaughlin) and I> collaborated > on menu2 and agreed to move menu2 to menu at a later time but> have not > decided when that would be.> > - Doug> -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14087758> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> _ Organizza le tue foto e condividile con i tuoi amici con Raccolta foto di Windows Live! http://www.windowslive.it
Re: cannot render a menubar using menu2 package
rik rik, you don't need to include the yui libraries. YuiMenuBar will do that automatically. Remove them from your html and everything should work fine. best, jim On Nov 30, 2007 3:58 AM, rik rik <[EMAIL PROTECTED]> wrote: > Hi to all, > I've downloaded the sources of menu2 from svn, but I'm not able to make it > working properly, because the page is not correctly rendered > My code (very simple) is this > > YuiMenuBar menubar=new YuiMenuBar("menubar","menubar"); > YuiMenuBarItem fileitem=menubar.addMenu("file"); > YuiMenuBarItem edititem=menubar.addMenu("edit"); > add(menubar); > > and this is the html > > > > > > > > > > menu > > > The js files have been downloaded from the yui site, and they are correctly > referenced from the html > Where am I going wrong? > Thanks > > Rik > > _ > Organizza le tue foto e condividile con i tuoi amici con Raccolta foto di > Windows Live! > http://www.windowslive.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot render a menubar using menu2 package
Rik, I am the primary author on this. Have you taken a look at the examples in wicketstuff-yui-examples? I have created examples for the Menu, MenuBar, and ContextMenu for menu2 package. You may ask...why menu2...b/c menu was taken and this iteration was completely revamped. The original author of menu (James McLaughlin) and I collaborated on menu2 and agreed to move menu2 to menu at a later time but have not decided when that would be. - Doug -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a14087758 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot render a menubar using menu2 package
Hi to all, I've downloaded the sources of menu2 from svn, but I'm not able to make it working properly, because the page is not correctly rendered My code (very simple) is this YuiMenuBar menubar=new YuiMenuBar("menubar","menubar"); YuiMenuBarItem fileitem=menubar.addMenu("file"); YuiMenuBarItem edititem=menubar.addMenu("edit"); add(menubar); and this is the html menu The js files have been downloaded from the yui site, and they are correctly referenced from the html Where am I going wrong? Thanks Rik _ Organizza le tue foto e condividile con i tuoi amici con Raccolta foto di Windows Live! http://www.windowslive.it