Posting these as two items on the issue tracker would be great, thanks.
I'm really not sure what to do about class names that aren't legal java
identifiers, to tell you the truth. That may be beyond the scope of what
it's reasonable to do with a css file meant to be tied to a specific ui.xml
file. (Although obviously exploding spectacularly isn't acceptable.)

On Wed, Sep 16, 2009 at 8:01 PM, Amir Kashani <[email protected]> wrote:

> Ray,
>
> Not sure if UiBinder and ui:style are far enough along that I should be
> putting bugs in the issue tracker or just posting here. If you'd rather me
> create bugs, let me know.
>
> There seems to be issues with handling CSS class names with dashes in them:
>
> 1) .my-class-name causes the compiler to explode spectacularly, because the
> CssResource interface generator doesn't make them Java safe. Really, any
> non-valid method name  needs to be handled with @ClassName, or renamed all
> together.
>
> 2) @external doesn't seem to work in combination with the aforementioned
> names:
>
> <ui:style>
> @external gwt-TextBox;
>
> .form { width: 300px; }
>
> .form .gwt-TextBox { border: 0; }
>
> </ui:style>
>
> That seems to ignore the external declaration and tries to create a
> gwt-TextBox() method, again, blowing up spectacularly. Oddly, @external does
> work in other instances.
>
> - Amir
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to