Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Primefaces 如何基于在datatable a中选择列值来填充datatable B_Primefaces - Fatal编程技术网

Primefaces 如何基于在datatable a中选择列值来填充datatable B

Primefaces 如何基于在datatable a中选择列值来填充datatable B,primefaces,Primefaces,我正在处理Primefaces,希望在datatable a中选择列值的基础上选择特定的列值 <p:dataTable var="record" value="#{upshighlevel.upstclist1}" id="highLevelTable" selectionMode="single" selection="#{upshighlevel.selectedOverView}" rowKey="#{record}"

我正在处理Primefaces,希望在datatable a中选择列值的基础上选择特定的列值

<p:dataTable var="record" value="#{upshighlevel.upstclist1}" id="highLevelTable"
                selectionMode="single" selection="#{upshighlevel.selectedOverView}" rowKey="#{record}" 
                paginator="true" rows="10" resizableColumns="true" scrollable="true" 
                scrollWidth="100%" scrollHeight="150" rowsPerPageTemplate="10,20,50"
                paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport}
                            {RowsPerPageDropdown} {NextPageLink} {LastPageLink}"
                currentPageReportTemplate="(Displaying {startRecord} - {endRecord} of 
                            {totalRecords}, Page: {currentPage}/{totalPages})">

                 <p:ajax event="rowSelect" listener="#{upshighlevel.onRowSelect}" update=":form:drillDownTable"/>

我正在使用rowSelect事件我们如何为列选择创建它?

您已经发现,没有列选择事件,在这种情况下,它甚至会是cellSelect I pressume

为什么这么难?为什么不直接做呢

<p:column>
    <p:commandLink value="#{cellValue}" 
       actionListener="#{selectionBean.selectCell(cellValue)}"
       update="myOtherDatatable" />
</p:column>
只需单击单元格即可启动actionListener并更新另一个datatable