But what if you want cascading styles...
For example, you have a menubar comosed of menuitems and so in the css, I've defined different styles liket that:
.gwt-MenuBar {
cursor: default;
}
.gwt-MenuBar .gwt-MenuItem {
cursor: default;
}
.gwt-MenuBar .gwt-MenuItem-selected {
background: #E0EDFE;
}
Is it possible to have something like:
<g:MenuBar ui:field="menuBar" addStyleNames="{style.gwt-MenuBar}"></g:MenuBar>
and the style for the menuItem will be automatically applied?
Actually, the menuItem are added in the java class.
It seems to not working, but I don't know why? I didn't get the philosophy or just a wrong method?