Exported instance method not being found in the JavaScript

36 views
Skip to first unread message

rocko...@googlemail.com

unread,
Jan 7, 2013, 8:14:00 AM1/7/13
to gwtex...@googlegroups.com
Folks,

I am using the latest get-exporter jar from the download page and GWT 2.5 GA.  I have followed the getting started instructions but the IE debugger is highlighting an error that the com. name space has not been found.  The .js and .JPeg of the error are attached.

Can anybody see what I am not doing correct?

thank you,

Kevin


<?xml version="1.0" encoding="UTF-8"?>
<module rename-to="rtmweb">
  <stylesheet src="/css/rostrvm8.css"/>
  <stylesheet src="/css/ext-override.css"/>
  <script src="/jsp/setdomain.jsp"/>
  <script src="/js/deployJava.js"/>
  <script src="/js/dotnetcheck.js"/>
  <script src="/js/externalapps.js"/>
  <script src="/js/refreshDetection.js"/>
  <inherits name="com.google.gwt.user.User"/>
  <inherits name="com.google.gwt.i18n.I18N"/>
  <inherits name="com.gwtext.GwtExt"/>
  <inherits name="com.gwtextux.GridSummaryPlugin"/>
  <inherits name="com.rostrvm.supervisorqueryengine.SupervisorQueryEngine"/>
  <inherits name="com.rostrvmsolutions.rostrvm.apis.VersionInfo"/>
<!-- For production, most teams prefer to set the default log level to `OFF` -->
  <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF" />
  <inherits name="com.rostrvmsolutions.rostrvm.eventbus.RtmEventBus" />

    # add logging module
    <inherits name="com.google.gwt.logging.Logging"/>                
    # To change the default logLevel 
    <set-property name="gwt.logging.logLevel" value="SEVERE"/>  
    # To enable logging   
    <set-property name="gwt.logging.enabled" value="TRUE"/>       
    # To disable a popup Handler   
    <set-property name="gwt.logging.popupHandler" value="DISABLED" />
    
  <inherits name="org.timepedia.exporter.Exporter" />
    <set-property name="export" value="yes" />



    <entry-point class="com.rostrvm.web.client.RtmWeb"/>
</module>
============================================================

    @Override
    public void onModuleLoad()
    {
final String methodName= "onModuleLoad";
Log.info(methodName+':'+"ENTER"+':');
        
try
{
//            ExporterUtil.exportAll();
            GWT.create(DisplayHandler.class);
            
   Scheduler.get().scheduleDeferred(new ScheduledCommand()
   {
@Override
public void execute()
{
   buildGUI();
}
   });
}
finally
{
   Log.info(methodName+':'+"EXIT"+':');
}
    }
============================================

import org.timepedia.exporter.client.Export;
import org.timepedia.exporter.client.Exportable;

public class DisplayHandler implements Exportable
{
    @Export    
    public static void browserPageRefreshInProcess()
    {
        setRefreshInProcess(true);
    }
    
    
    @Export    
    public static void browserPageLoadInProcess()
    {
        setRefreshInProcess(false);
    }

IE debug result.jpg
refreshDetection.js

Manuel Carrasco Moñino

unread,
Jan 13, 2013, 7:00:09 PM1/13/13
to gwtex...@googlegroups.com
How do you execute that js, it seems your gwt entrypoint has not been executed when you use the exported classes in your script.

could you send your .html file and the javascript in it to take a look?


--
 
 

Reply all
Reply to author
Forward
0 new messages