How to get the h:selectManyListbox selected values from within a JSF converter?
I'm trying to populate a h:selectManyListbox with a list of objects, using a converter. I can easily co开发者_高级运维nvert each object to string in the getAsString(...) method, but I don't seem to find a clean solution to retrieve the same objects corresponding to the selected items from within the getAsObject(...) method inside the converter.
I tried using the faces context's requestMap/sessionMap, it works but I'm not sure that is the best approach for this.
I know I could use a map or perform some conversion straight into the managed bean, but my question is about using the converter only.
Any help would be much appreciated.
精彩评论