【发布时间】:2017-11-07 09:00:58
【问题描述】:
我在 JSF 的 taglib.xml 中创建自定义组件,如下面的代码
<tag-name>CustomComponent</tag-name>
<component>
<component-type>javax.faces.Input</component-type>
</component>
</tag>
在 xhtml 中渲染组件,如下所示
<h:body bgcolor="white">
<cs:CustomComponent></cs:CustomComponent>
</h:body>
我想为这个组件添加自定义属性。如果除了我指定的任何其他参数,并且想要抛出警告。 jsf可以做到吗?
【问题讨论】:
标签: jsf jsf-2 custom-component