Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 GWT 中的 servlet 获取上传进度信息,但SubmitCompleteHandler在服务器上传完成和 servlet 重新调整响应后返回。是否可以使用 获取上传进度PropertyChangeListener?
SubmitCompleteHandler
PropertyChangeListener
是的,您可以使用它PropertyChangeListener来实现上传进度信息的显示。这是很好的样本。
例如,我知道早期的 Gmail 使用 SWFUpload。您可以通过SWFUpload-GWT使用它。这种方法的主要优点是不需要任何特殊的服务器代码。
看看这些库:
GWT 上传。它很容易集成并在所有浏览器中正常工作。它使用 ajax 请求来计算进度。
GWTChismes 中的 GWTCProgressBar 小部件
具有某些功能的文件上传器
GwtSwfExt