简体   繁体   English

如何在JSP页面(JSF 1.2)上从rich:columns到rich:datatable的“ var”获取访问权限?

[英]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.

相关问题 如何从另一个项目的jsp访问Axis1 Web服务? - How can I acces Axis1 webservice from another project's jsp? JSF 1.2 dataTable动态添加列 - JSF 1.2 dataTable Add Columns Dynamically 如何从JSP页面获得登录名? 如何更正我的jsp代码。 - How can I get a Login from JSP page? How can I correct my jsp code.? 如何从JSP页面获取Date字段到repositoryFormHandler? - How can I get Date field from the JSP page to repositoryFormHandler? 如何在不重定向到另一页面的情况下从一个jsp页面获取值到另一个jsp? - How can i get values from one jsp page to another jsp without redirecting to another page? 如何从JSF调用JSP页面 - How to invoke JSP Page from JSF JSF / Rich Faces中的选项元素 - Option elements in JSF / Rich Faces 我可以使用 JSF 1.2 和 JSP 2.1 在 ac:forEach 标记上的统一 EL 表达式中使用哈希表吗? - Can I use a Hashtable in a unified EL expression on a c:forEach tag using JSF 1.2 with JSP 2.1? RichFaces应用程序,我应该使用rich:dataTable还是jQGrid,pros cons? - RichFaces application, should I use rich:dataTable or jQGrid, pros cons? 我如何在JSP页面年龄上获取地图并在表的两列中显示键和值 - How I can get map on JSP page age and show the key and value in two columns of a table
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM