我换了一个作品重新使用它。该作品包含这样的标签:
<t:radio for=":someForm:someComponent" index="#{index}" />
我包括这样的构图:
<ui:include src="/theComposition.xhtml">
<ui:param name="someParam" value="#{someBean}" />
</ui:include>
但是如何参数化作品中的“someForm”部分呢?因为这取决于我包含它的位置。我可以传递一个字符串...但我应该如何连接它?或者还有其他方法吗?
答案 0 :(得分:1)
您可以在属性值中内联EL。
<t:radio for=":#{someParam}:someComponent" index="#{index}" />