Results 1 to 2 of 2

Thread: gxt and i18n translation

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Vote Rating

    Default gxt and i18n translation


    at first sorry for my bad english. i hope you understand my question.

    i have a problem with translation and gxt. I followed the instructions at the "Developer's Guide - Internationalization" on the google page.

    I'm getting a strange error:
    Exception while loading module digitronic.ems.client.EnergyManagementServer. See Development Mode for details.
    java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at at at at at Source) Caused by: java.lang.ExceptionInInitializerError at com.extjs.gxt.ui.client.widget.Component.( at digitronic.ems.client.EnergyManagementServer.onModuleLoad( ... 9 more Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.extjs.gxt.ui.client.messages.XMessages' (did you forget to inherit a required module?) at at at com.extjs.gxt.ui.client.GXT.( ... 11 more Caused by: (see previous log entries) at at at ... 13 more
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='energymanagementserver'>
      <inherits name=''/>
      <inherits name=""/>
      <inherits name=''/>
      <inherits name='com.extjs.gxt.ui.GXT'/>
      <inherits name='' />    
      <extend-property name="locale" values="de"/>
      <!-- Specify the app entry point class.                         -->
      <entry-point class='digitronic.ems.client.EnergyManagementServer'/>
      <!-- Specify the paths for translatable code                    -->
      <source path='client'/>
      <source path='shared'/>
      <inherits name="net.sf.gilead.Gilead4Gwt"/>
      <inherits name="com.extjs.gxt.charts.Chart"/>
      <inherits name="digitronic.ems.EnergyManagementServer"/>

    EntryPoint html:
    <!doctype html>
    <!-- The DOCTYPE declaration above will set the    -->
    <!-- browser's rendering engine into               -->
    <!-- "Standards Mode". Replacing this declaration  -->
    <!-- with a "Quirks Mode" doctype may lead to some -->
    <!-- differences in layout.                        -->
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <!--                                                               -->
        <!-- Consider inlining CSS to reduce the number of requested files -->
        <!--                                                               -->
        <link type="text/css" rel="stylesheet" href="EnergyManagementServer.css">
    	<link rel="stylesheet" type="text/css" href="resources/css/gxt-all.css" /> <script language='javascript' src='resources/flash/swfobject.js'></script>
        <!--                                           -->
        <!-- Any title is fine                         -->
        <!--                                           -->
        <!--                                           -->
        <!-- This script loads your compiled module.   -->
        <!-- If you add any GWT meta tags, they must   -->
        <!-- be added before this line.                -->
        <!--                                           -->
        <script type="text/javascript" language="javascript" src="energymanagementserver/energymanagementserver.nocache.js"></script>
      <!--                                           -->
      <!-- The body can have arbitrary html, or      -->
      <!-- you can leave the body empty if you want  -->
      <!-- to create a completely dynamic UI.        -->
      <!--                                           -->
        <!-- OPTIONAL: include this if you want history support -->
        <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
        <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
          <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
            Your web browser must have JavaScript enabled
            in order for this application to display correctly.

    EntryPoint Class:
    ackage digitronic.ems.client;
    import com.extjs.gxt.ui.client.widget.Viewport;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
    public class EnergyManagementServer implements EntryPoint {
        public void onModuleLoad() {
    	Viewport viewport = new Viewport();
    	viewport.setLayout(new BorderLayout());

    The Error comes up when i append this line to the gwt.xml
    <extend-property name="locale" values="de"/>
    If I leave out this line, everything works fine.

    what am I doing wrong?

    Best Regards
    Marcel Springer


    Please move it to: ext gwt 2.x help
    Last edited by emcell; 14 Mar 2011 at 4:09 AM. Reason: it's in the false forum

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Vote Rating

    Default solved!

    after the restart of my computer in the morning everything works fine! very strange!

Similar Threads

  1. Extjs and i18n
    By wceuppens in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 6 Jan 2010, 7:16 AM
  2. DateField i18n
    By extjs_bugmenot in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 15 Oct 2009, 1:40 AM
  3. i18n for DateField
    By Daniel Kurka in forum Ext GWT: Help & Discussion (1.x)
    Replies: 3
    Last Post: 18 Jul 2008, 12:09 AM
  4. i18n & DateField
    By kescatefou in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 9 Jun 2008, 2:33 AM
  5. [RESOLU] i18n
    By kescatefou in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 5 Jun 2008, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts