Sunday, April 10, 2011

Re: java.lang.AssertionError after upgrading from gwt 1.5.2 to gwt 1.6.4 (when run in hosted mode)

> java.lang.AssertionError: The style name 'margin-top' should be in
> camelCase format
> at com.google.gwt.dom.client.Style$.assertCamelCase$(Style.java:63)
> at com.google.gwt.dom.client.Style$.setProperty$(Style.java:42)
> at com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1208)
When setting margin top in CSS, you use "margin-top", but when setting from javascript, you must use "marginTop". GWT is doing some sanity checking on your style names to make sure you're using the camel case version required for javascript.

In other words, you have a bug in your code: you should have specified "marginTop" in your code, and not "margin-top".

Paul

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate