简体   繁体   English

在运行时加载的Wicket GUI元素(OSGi?)

[英]Wicket GUI elements loaded in runtime (OSGi?)

I'm analyzing new approach for my application which should have GUI part automaticaly generated from XML description. 我正在为我的应用程序分析新方法,该方法应该具有从XML描述自动生成的GUI部分。

I have (generaly speaking source) with "description" of domain data. 我(通常是源代码)带有域数据的“描述”。 Something like 就像是

String with NAME
String wtih NICK
Boolean with MARIED
Integer with AGE

In my case it is data about somthing very complex so data above is here for abstraction. 就我而言,这是关于非常复杂的数据,因此上面的数据在这里用于抽象。 I have many of this XML and I have to be able in runtime of some WEB applicatin add another. 我有很多这种XML,而且我必须能够在运行时将某些WEB应用程序添加另一个。 (I'll add a XML file and application will be able to work with new "object" (generaly speaking create formular and view for this object). (我将添加一个XML文件,应用程序将能够使用新的“对象”(通常来说,创建公式并查看该对象)。

My proposal was to generate (using something like XSLT) a OSGi bundle and that bundle in runtime use in program. 我的建议是生成(使用XSLT之类的)OSGi捆绑软件,并在程序运行时使用该捆绑软件。

Please could you give some pros/cons for this approach (I'm a newbie in OSGi and not 100 sure it is possible or good aproach) or give me a hint how could be solved this issue? 请您能为这种方法提供一些优点/缺点(我是OSGi的新手,而不是100名肯定它是可行的或很好的方法),或者给我一个提示如何解决此问题? My only requirements are ability of loading new domain objects in runtime and using Wicket. 我唯一的要求是能够在运行时加载新域对象并使用Wicket。

Thanks a lot for any advices. 非常感谢您的任何建议。

您不需要OSGi,例如,您可以使用带有RepeaterPanel ,该Panel根据某些配置添加适当的UI元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM