This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes GWT and the fly likes Link menubar with a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Link menubar with a page" Watch "Link menubar with a page" New topic

Link menubar with a page

Jose Luis Urrea

Joined: Nov 04, 2011
Posts: 1
Hi everybody.

I'm beginer in GWT ans I'm trying to develop a menu for my application with MenuBar like this:

MenuBar masterMenu = new MenuBar(true);
masterMenu.addItem("Cost Center", cmd);
RootPanel.get("menuApp").add(masterMenu );

But I don't know how to implement the command or url to link with the other page?

Someone knows how to do this? In internet there are a lot of information how to make a menu, but they don't explain how to link with pages' urls


Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10836

Welcome to the Ranch.
Are you trying to change the page contents via the menu? If yes, then you can use the history mechanism. More on it here

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Dick Martin

Joined: Sep 15, 2011
Posts: 6
Give some thought to downloading and installing GWT Designer. When you add the menubar to the page in GWT Designer, it will give you a bunch of relevant choices. including events. The Designer tool helps us beginners and greenhorns.
I agree. Here's the link:
subject: Link menubar with a page
It's not a secret anymore!