This used to confuse me greatly, so I'm very glade theres a specific
error message now.

On Oct 6, 8:00 am, Ian Bambury <[email protected]> wrote:
> It's always been the case that you needed to use camelCase, it hasn't always
> been the case that GWT would report the use of hyphens as an error.
> Ian
>
> http://examples.roughian.com
>
> 2009/10/5 Joe Cole <[email protected]>
>
>
>
>
>
> > Has this always been the case? I've just started encountering these
> > errors after upgrading to 1.7.
>
> > On Oct 6, 4:43 am, Paul Robinson <[email protected]> wrote:
> > > It's a javascript thing. All CSS names in javascript have to be
> > > camelcase. So it's "border-left" in html, but "borderLeft" in any
> > > javascript DOM code.
>
> > > Joe Cole wrote:
> > > > Can someone explain why this code from com.google.gwt.dom.client.Style
> > > > is enforcing camelcase:
>
> > > >   private void assertCamelCase(String name) {
> > > >     assert !name.contains("-") : "The style name '" + name
> > > >         + "' should be in camelCase format";
> > > >   }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to