2
我正在开发一个JSF 2.0复合组件。我正在尝试创建一个盒子组件,我的所需HTML将设置为属性。如何传递节点值作为JSF 2.0中复合组件的属性
有些东西一样..
<composite:interface>
<composite:attribute name="value" />
</composite:interface>
<composite:implementation>
<table cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td></td>
<td>#{cc.attrs.value}</td>
<td></td>
</tr>
</table>
</composite:implementation>
当我想使用这个组件,并通过所需的HTML属性“值”,就像这样:
<someDir:boxComp>Hello</someDir:boxComp>
的“你好”是不作为属性值。 我如何使节点值作为属性值。