JSF:ui:包括“ for”属性的参数

问题描述

|| 我换了一个构图以重新使用它。组成包含如下标签:
<t:radio for=\":someForm:someComponent\" index=\"#{index}\" />
我包括这样的组成:
<ui:include src=\"/theComposition.xhtml\">
    <ui:param name=\"someParam\" value=\"#{someBean}\" />
</ui:include>
但是,如何参数化合成的“ someForm”部分?因为那取决于我在哪里包含它。我可以传递一个字符串...但是我应该如何连接它呢?还是还有其他方法?     

解决方法

您可以仅在属性值中内联EL。
<t:radio for=\":#{someParam}:someComponent\" index=\"#{index}\" />
    

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...