如何在没有后端bean的情况下将List传递给JSF组件中的EL?换句话说,如何在JSF中声明和初始化List / Array而不使用bean?
示例:
caller.xhtml
/* Call a JSF-Component */
<mycomp:displayList value="HERE I WANT TO PASS A LIST WITHOUT A BACKINGBEAN"/>
displayList.xhtml
/* MY Component */
<composite:interface>
<composite:attribute name="value" type="java.util.list" />
</composite:interface>
有没有可能将未在Bean中声明的List/Collection传递给JSF组件?