Try this, I don't see why you'd need to use f:setPropertyActionListener:
Also you could get rid of the c:forEach and use <f:selectItems>, although I typically
have to use a converter such that the getAsString method returns the string to be displayed in the
But your way looks simpler than mine! I found this irritatingly fiddly to implement.
M A Mujeeb
Joined: Aug 05, 2010
Thanks for your input. I was trying to pass an object using h:selectOneMenu, but it passes the object as a String. I finally got around by passing the Id of the selected item from dropdown and then retrieve the details on server side using that id.