我正在开发一个 JSF 2.0 复合组件。我正在尝试创建一个框组件,我需要的 HTML 将被设置为属性。
就像是..
<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 传递给属性“value”时,如下所示:
<someDir:boxComp>Hello</someDir:boxComp>
“Hello”不被视为属性值。我怎样才能使节点值作为属性值。?