Thats the point isnt it ? i.e. at the moment you have a many to one
mapping, i.e. multiple instances of a select menu all mapping back to
one bean property.

I have a similiar problem too, in that the User objects are (ideally)
just provided to me, but as they stand they do not have a 'roleId'
property (or more succinctly a 'isSelected' property).

For quickness I actually added this property to each User object.

Since the alternative, as far as I'm aware at the moment, seems to be
to have an intermediate or decorative class object, where you iterate
over the given Users objects and create a new decorative class
instance for each User which will contain this roleId property and use
this new List of objects as the dataTable value binding, which isnt
very elegant but it would seem anything else would be even less
elegant.

Someone else might know of alternatives.

Reply via email to