开发者

How to get the h:selectManyListbox selected values from within a JSF converter?

开发者 https://www.devze.com 2023-03-19 09:05 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消