Is it possible to create editable datatable using Omnifaces #{of:setToList}

为君一笑 提交于 2019-12-02 08:04:26

问题


I am trying to create a editable datatable whose values are java.util.Set. But in JSF-2.0 and 2.1 this is not possible as explained in Displaying objects from a Set collection in Datatable JSF does not work.

Till now as a work around all Sets are converted to java.util.List and everything works.

As mentioned in answer to var is the collection, not the item, I am trying Omnifaces #{of.setToList} so that I can avoid unnecessary conversion of Set to List. Everything works well when its a normal datatable. But when I tried to convert it to editable datatable, it doesnt work. So, is it possible to create editable datatable using Omnifaces #{of:setToList}?

Maybe I am doing something wrong. I can post code if needed. Thanks in advance.

来源:https://stackoverflow.com/questions/14253340/is-it-possible-to-create-editable-datatable-using-omnifaces-ofsettolist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!