I have a GWT 2.0 ToggleButton that I created from a ResourceBundle:
ToggleButton tb = new ToggleButton();
tb.setStyleName(MyResources.INSTANCE.MyCssResource().TogBut());
Then, the client-side implementation adds additional styles to "TogBut-up" and "TogBut-down" to style button states.
I cannot, however, add the "TogBut-down" style to my css, because this is an invalid name for a field in my subclass of CssResource.
Does anyone know what is the best practice in this scenario? Should I just avoid obfuscation and stratification of resources?
source
share