简体   繁体   English

jsf:如何根据数据表中每一行中的其他 selectOneMenu 唯一填充 selectOneMenu

[英]jsf: how to uniquely populate selectOneMenu based on other selectOneMenu in each row in datatable

i am using datatable with multiple columns.我正在使用具有多列的数据表。 first column has select combo for categories.第一列有类别的 select 组合。 on selection of category list of items should be populated in next combo in next column.在选择项目的类别列表时,应在下一列的下一个组合中填充。 this is fine but changing category in one row also changes the items combo in all rows.这很好,但是在一行中更改类别也会更改所有行中的项目组合。 as rows are dynamically created how can i do this uniquely for each row??由于行是动态创建的,我如何才能为每一行唯一地做到这一点?

Bind the list of select items to the row object instead of the backing bean.将 select 项目列表绑定到 object 行而不是支持 bean。

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

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