简体   繁体   English

如何使用JSF和数据表将selectManyCheckbox行的整个值获取到列表

[英]How to get the selectManyCheckbox row entire values to the list using JSF and datatables

Select Many Check box items to Cart : 选择购物车中的许多复选框项目:

  1. Declare check box first column of data 声明复选框第一列数据
  2. Declare the command button to the above the data 将命令按钮声明为上方的数据
  3. Once user click the check box current row data add to the list and this list data go to the Cart page 用户单击复选框后,当前行数据将添加到列表中,并且此列表数据将转到“购物车”页面
  4. On click the check box current row data add to the list and on submit the button the entire list data go to the Cart page. 单击复选框,将当前行数据添加到列表中,然后提交按钮,将整个列表数据转到“购物车”页面。

Thanks in Advance. 提前致谢。

You can use primefaces datatable component for select one or more rows from a table and send this information to everywhere. 您可以使用primefaces数据表组件从表中选择一个或多个行,并将此信息发送到任何地方。

Take an example of this in showcase (the datatable have many others options too) . 展示柜中举例说明(数据表也有许多其他选项)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM