问题
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