Is it possible to create dynamically pluggable GWT widgets/portlets in separate war files?

社会主义新天地 提交于 2019-12-01 17:53:41

I'd imagine that a "GWT portlet" is nothing more than a widget that you write yourself (and perhaps implements a common interface).

The hard part is to dynamically allow a precompiled gwt app to include another gwt component (the portlet in this case) without compiling again with the source (which is what the question seems to imply).

I too have been looking into this, especially after seeing the Wave demo. From what I can tell, the approach the wave team have taken is to use either the Google Gadget api or a variation of the Gadget api. Google also have a tutorial on writing a gadget in GWT. I would image you would use a event based api where JSO objects are passed between the Gadget and the GWT application. Note that this may also introduce XSS issues if from different domains. I think of this as akin toloading a swf dynamically in flash. The event method is similar to working safely with cross-site dynamic loaded swf's.

I'm very new in GWT yet, but based in what i'd readed I can tell you that you must follow an architecture MVP with an App Controller that "plug" and "play" dynamically what you want to dispatch using metadata that must come from the model layer... Something like a "meta-application"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!