Problems passing class objects through GWT RPC

后端 未结 8 914
野趣味
野趣味 2020-12-04 18:39

I\'ve run through the Google Web Toolkit StockWatcher Tutorial using Eclipse and the Google Plugin, and I\'m attempting to make some basic changes to it so I can better unde

8条回答
  •  孤城傲影
    2020-12-04 18:57

    The GWT compiler doesn't know about Stock, because it's not in a location it looks in. You can either move it to the client folder, or if it makes more sense leave it where it is and create a ModuleName.gwt.xml that references any other classes you want, and get your Main.gwt.xml file to inherit from that.

    eg: DomainGwt.gwt.xml

    
        
        
    
    

    and:

    
        
        
    
        
    
    

提交回复
热议问题