get the unid of selected documents and save to scoped variable

后端 未结 3 1056
南笙
南笙 2021-01-27 23:23

I\'ve a viewPanel1 with checkboxes. By clicking on a button I would like to save the univ id\'s (comma seperated) of the selected items to a scoped variable. I tried this :

3条回答
  •  孤街浪徒
    2021-01-28 00:15

    Also, don't forget that scoped variables can hold an array, so you don't really need to box/unbox the array:

    sessionScope.put("SelectedIds", getComponent("viewPanel1").getSelectedIds());

提交回复
热议问题