Problem with MenuItem and some other beginners questions

Hi

it seems that the Menu doesn’t work in the GWT environment. If I compile the gwt source and use s browser it works ? BTW: I tested it with the menu sample and some own code.

The result is, that the menu is shown when I click on the Menu Button, but I can’t select any item.

The other question: What is the best approach to dynamically change the content of a panel (or canvas in smartGWT terminology ?). What I would like to achieve is:

I have a menubar at the top. An application canvas in the middle and a statusbar at the bottom. If i click on a menu item the center canvas should be replaced with the requested content (client info, price info and so on).

I already had his working in gwt-ext where I cleared a panel and then added the required widgets and then called doLayout.

And the last question. I used a toolbar in gwt-ext do build a menubar. What is the prefed solution in smartGWT to do this ?

Regards
Roger

Some more testing

I did some more testing to check my problem regarding the MenuItems. The problem still exists but only when I try to selected a MenuItem with the mouse. If I use the keyboard everything works as expected. If I use the mouse selecting a MenuItem is not possible.

BTW: I’m using Mac OX X 10.5.6

Regards
Roger

And one more finding

If I execute the sample application “Sub Menus” in hosted mode and navigate to one of the submenus (e.g. recent documents) the submenu gets displayed at the wrong position (it gets displayed right beneath the menu button).

Regards
Roger

Which build of SmartGWT are you using? SmartGWT beta1 had a known OSX issue where menu’s were not selectable in hosted mode only. When compiled and run in a browser it worked fine.

This issue was resolved in one of the nightly builds. Try picking up the latest SVN build or build from SVN yourself. See this thread for automated build location.

I’m not sure of the other menu ordering issues you mention. Please post a stand alone test that I can run locally if you still have issues after picking up the latest build.

Sanjiv

Works

So far no menu problems with the latest build

Thanks
Roger