[英]Is it posible to use markup inheritance with apache wicket panels
I am trying to implements a wicket panel which inherits from a parent panel.我正在尝试实现一个从父面板继承的检票口面板。 I have used the same patterns as used for inheritance in pages.
我在页面中使用了与 inheritance 相同的模式。 Hence for panels.
因此对于面板。
**Parent panel markup ** **父面板标记**
<wicket:panel>
<parent markup>
<wicket:child/>
</wicket:panel>
**Child panel ** **儿童面板**
<wicket:extend>
child markup here.
</wicket:extend>
However the child markup is not shown and I receive no errors.但是没有显示子标记,我没有收到任何错误。
Anybody have any ideass?有人有什么想法吗?
Markup inheritance is not restricted to pages, it can be used for all components with their own markup.标记 inheritance 不限于页面,它可以用于具有自己标记的所有组件。
From your code I cannot see why it isn't working for you.从您的代码中,我看不出它为什么不适合您。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.