did you forget to inherit a required module?

[ERROR] Line 38: No source code is available for type com.hqh.test.image.Icons; did you forget to inherit a required module?

在Gwt中用RPC传递个自定义类型的,竟然老报错!!!搞了N久才发现错哪啦,还是在一个网站上看到一个老外的回复才恍然大悟!
did you forget to inherit a required module

Hi,

In my application I wrote one utility class DateHelper.java which will be used for parsing the date,etc..etc.. this DateHelper.java is in the package of web.utility. My entry point classes
in web.client package. so When I tried to call this DateHelper.java in the entry point class,
It is giving error like Line 531: No source code is available for type web.utils.DateHelper; did you forget to inherit a required module?. cant we write any utility methods like this?

thanks



You can't use classes from other packages than client on the client side code. You can put it in web.client.utils.DateHelper.

看到这,想起把class放client下面试试,结果还真解决了问题!!!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值