On Wed, Jan 5, 2011 at 12:43 PM, Jim Douglas <jdou...@basis.com> wrote:
> > This is driving me around the bend. Our production configuration > builds for all browsers & several languages. > > For development / testing purposes, I'm trying to define a restricted > configuration that just hard codes a single locale, like this: > > <?xml version="1.0" encoding="UTF-8"?> > <module rename-to='gwtwebclient'> > <inherits name='com.basis.bbj.web.gwt.GWTWebClient'/> > <extend-property name="locale" values="en_US" /> > <set-property name="locale" value="en_US"/> > </module> > > That configuration seems to work fine in production mode, setting the > GWT client Locale to "en_US". But this line crashes and burns in > development mode: > > m_i18n = GWT.create(I18N.class); > > II18n is a bunch of constants: > > package com.basis.bbj.web.gwt.client.i18n; > > import com.google.gwt.i18n.client.Constants; > > public interface I18N extends Constants > { > @DefaultStringValue("Click to reload application") > String clickToReloadApplication(); > ... > } > > FWIW, I've read this several times, hoping to find some clue about > what I'm doing wrong: > > http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html > > I can use some suggestions; maybe I'm just missing something really > stupid. > > GWT dev mode reports the following less-than-enlightening error > messages: > > 00:01:14.521 [DEBUG] Rebinding com.basis.bbj.web.gwt.client.i18n.I18N > > 00:01:14.521 [DEBUG] Invoking > com.google.gwt.dev.javac.standardgeneratorcont...@203317c5 > > 00:01:14.521 [ERROR] Error while executing the JavaScript provider for > property 'locale' > com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is > not a function fileName: > http://localhost:8080/gwtwebclient/gwtwebclient.nocache.js Typically, this happens when you don't have a browser-specific module available. Check your server log for 404 errors. Since you've stipulated that you're compiling in a "restricted configuration", I'd start there. Also, clean up your server directory to remove obsolete files and redeploy. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.