是否可以在单独的war文件中创建可动态插入的GWT小部件/ portlet? [英] Is it possible to create dynamically pluggable GWT widgets/portlets in separate war files?

查看:94
本文介绍了是否可以在单独的war文件中创建可动态插入的GWT小部件/ portlet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在GWT中创建可以动态加载并添加到GWT Web应用程序中的小部件/ portlet,以及GWT小部件可以驻留在单独的war文件中?

澄清我的问题:符合JSR168 / JSR286兼容门户的
可以在单独的项目(war文件)中创建portlet,并将它们动态加载到门户页面中。假设你想在GWT应用程序中做类似的事情。所以假设我们为GUI使用了GWT(没有JSP或类似),并且我们想动态添加一个用纯GWT编写的portlet。这可能吗?我可以想象它可以使用IFrame来完成,但是如果这样一个GWT widget / portlet完全成为GWT主机门户应用程序,并共享它的样式表和其他资源。

解决方案

只不过是你自己编写的一个小部件(也许实现了一个通用接口)。

最难的部分是动态地允许预编译的gwt应用程序包含另一个gwt组件(在这种情况下为portlet),而不用再次编译源代码(这就是问题似乎暗示)。


Is it possible to create widgets / portlets in GWT that can be dynamically loaded and added to a GWT web application, and where the GWT widgets can reside in a separate war files?

To clarify my question: JSR168/JSR286 compliant portals make it possible to create portlets in separate projects (war files) and to dynamically load these into a portal page. Suppose you want to do something similar in a GWT application. So suppose we made a portal using only GWT for the GUI (no JSP or alike) and we want to dynamically add a "portlet" written in pure GWT. Would that be possible?

I can imagine that it could be done using an IFrame, but it would be nicer if such a GWT widget/portlet would be fully part of the GWT host "portal" application and share it's style sheets and other resources.

解决方案

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).

这篇关于是否可以在单独的war文件中创建可动态插入的GWT小部件/ portlet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆