学习GWT碰到的一些问题

一:
hibernate返回的entity不能被gwt序列化,也就是entity怎么被gwt和hibernate共用
采用hibernate4gwt组件

二:
gwt设计的问题,怎么样才能合理设计UI避免多次重复创建,且多次重复从server side获取数据,比如我有一个UserInfo Composite,每次查看的时候就把这个UI重新画一次
页面切换的时候隐藏起来也不是一个好办法
参考showcase或nexus

三:
异步调用问题,有时候数据不能及时到达,怎么样实现同步调用
因为javascript所有的远程调用是异步的?
How do I sync with the calls better? Sometimes you have to wait for the answer.
Did someone an idea?

Thank you
Johann

All GWT RPC calls are asynchronous, which means that other processes/tasks may be started before the asynchronous process has finished.

There are many ways to make the user waiting for the response by using:

1. Loading image

2. Mask

3. Message

4. You can combine 1. & 2. & 3.

四:
javascript是单线程的,所以所有多线程API不起作用

你可能感兴趣的:(JavaScript,多线程,Hibernate,UI,gwt)