0
如何扩展jsf primeface链接?我想在链接中使用actionListener
属性并覆盖encodeAll
方法。扩展JSF组件CommandLink
如何扩展jsf primeface链接?我想在链接中使用actionListener
属性并覆盖encodeAll
方法。扩展JSF组件CommandLink
可以创建一个复合组件作为包装和使用的背衬类:
<composite:interface componentType="my.special.Class">
...
</composite:interface>
<composite:implementation>
// place your wrapped component here
</composite:implementation>
覆盖在背衬的类方法encodeChildren。
请注意:这是一个比干净的解决方案,而不是一个黑客。取决于你想要做什么,自定义渲染器将是适当的。