JSF:ui:包含“for”-attribute的param

时间:2011-05-26 09:02:01

标签: jsf parameters el composition

我换了一个作品重新使用它。该作品包含这样的标签:

<t:radio for=":someForm:someComponent" index="#{index}" />

我包括这样的构图:

<ui:include src="/theComposition.xhtml">
    <ui:param name="someParam" value="#{someBean}" />
</ui:include>

但是如何参数化作品中的“someForm”部分呢?因为这取决于我包含它的位置。我可以传递一个字符串...但我应该如何连接它?或者还有其他方法吗?

1 个答案:

答案 0 :(得分:1)

您可以在属性值中内联EL。

<t:radio for=":#{someParam}:someComponent" index="#{index}" />