Is it posible to use markup inheritance with apache wicket panels

huangapple go评论55阅读模式
英文:

Is it posible to use markup inheritance with apache wicket panels

问题

我正在尝试实现一个继承自父面板的维基面板。我已经使用了与页面继承相同的模式。因此,对于面板。

父面板标记

<wicket:panel>    
  <parent markup>  
  <wicket:child/>  
</wicket:panel>

子面板

<wicket:extend>
  这里是子标记。
</wicket:extend>

然而,子标记没有显示,并且我没有收到任何错误。有人有什么想法吗?

英文:

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

答案1

得分: 1

标记继承不仅限于页面,它可以用于所有具有自己标记的组件。

从您的代码中,我无法看出为什么它对您不起作用。

英文:

Markup inheritance is not restricted to pages, it can be used for all components with their own markup.

From your code I cannot see why it isn't working for you.

huangapple
  • 本文由 发表于 2020年7月23日 04:29:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/63042711.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定