[英]How can I get acces from rich:columns to rich:datatable's “var” on JSP page (JSF 1.2)?
Code of JSP page JSP页面的代码
<rich:dataTable id="journalTable" value="#{sessionBean.currentPageDataList}"
var="row" >
<rich:columns value="#{row}" var="column">
<f:facet name="header">
<h:outputText value="#{column}"/>
</f:facet>
<h:outputText value="#{column}"/>
</rich:columns>
</rich:dataTable>
I need to get "var" from dataTable because it creates from array of lists 我需要从dataTable中获取“ var”,因为它是从列表数组中创建的
List[] list = new ArrayList()[];
It looks similar to the two dimensional array and nested loops. 它看起来类似于二维数组和嵌套循环。
How can I get the access? 我如何获得访问权限? or maybe there exsist another way?
还是存在另一种方式?
Datatable's var is one list of array of lists. Datatable的var是列表数组的一个列表。 Columns var creates by implicit foreach, used on this list and each element of list goes to each cell from current rom.
var列由隐式foreach创建,用于此列表,列表中的每个元素都从当前rom移至每个单元格。 This is the mechanism.
这就是机制。 The task is to find way to use datatable's var in the columns block, using jsf 1.2 Earlier I use jsf 2.1 and I didn't have such problems.
任务是找到使用jsf 1.2在column块中使用datatable的var的方法。之前我使用jsf 2.1,但没有遇到此类问题。 The way was to pass parameter in method call.
方法是在方法调用中传递参数。 But.
但。 There's no way to do it as I understand.
据我了解,这是没有办法的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.