Can anyone tell me how to integrate a CSS Menu with GWT? I found a great site called http://www.cssmenumaker.com/ and I like the menu it creates, but I’m not sure how I can integrate that into the rest of my GWT app. How can I make the links in the menu interact with GWT.
Any help would be appreciated.
I found yet another way this can be achieved. I used GQuery to select all elements with a class name. In my HTML, I put that class name on all my list items I need to have an action associated with it. I then call
hookUpMenu()in theonModuleLoad()method and use the built-in History methods to manage page change.I then implemented the
ValueChangeHandlerinterface to handle the page changes and swap content in and out.A snippet of HTML: