如何在zk框架中使用tablelayout

时间:2014-09-17 08:54:15

标签: zk

我是ZK框架的新手,我正在使用它的最新版本。我正在尝试在zul中使用tablelayout但是它给出了错误。导入zkmax.jar但是它对我不起作用。有人帮忙吗?     这是示例代码:

<tablelayout columns="2">
    <tablechildren>
        <panel title="Table 1" border="normal" maximizable="true"
            collapsible="true" width="200px" height="200px">
            <panelchildren>Panel Content</panelchildren>
        </panel>
    </tablechildren>
    <tablechildren>
        <panel title="Table 2" border="normal" maximizable="true"
            collapsible="true" width="200px" height="200px">
            <panelchildren>Panel Content</panelchildren>
        </panel>
    </tablechildren>
    <tablechildren>
        <panel title="Table 3" border="normal" maximizable="true"
            collapsible="true" width="200px" height="200px">
            <panelchildren>Panel Content</panelchildren>
        </panel>
    </tablechildren>
    <tablechildren>
        <panel title="Table 4" border="normal" maximizable="true"
            collapsible="true" width="200px" height="200px">
            <panelchildren>Panel Content</panelchildren>
        </panel>
    </tablechildren>
</tablelayout>
Error:

java.lang.ClassNotFoundException: org.zkoss.zul.impl.api.XulElement

2 个答案:

答案 0 :(得分:0)

XulElement通常位于zul-x.x.x.jar

示例:

zul.6.5.3.jar包含org.zkoss.zul.impl.XulElement 你可以在另一条路上看到它。 同样适用于zk 7.x.x =&gt; http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/impl/XulElement.html

现在你有了冲突的依赖关系,其中zul的版本对于另一个依赖关系来说很高。
为了获得进一步的帮助,我需要知道你们所使用的zk罐子。

尽可能see in this fiddle,您的代码没有任何问题。

答案 1 :(得分:0)

这是真的,我稍后检查过。但是我在zk论坛中找到了这个建议,所以我试过了。我找到了解决方案。我实际上使用免费版,这些组件可用于PE&amp; EE不在CE中。 :)供参考http://www.zkoss.org/whyzk/Features。 不管怎么说,还是要谢谢你..!!