-
1. Re: selectOneMenu preselection
dragospd Dec 23, 2007 2:08 AM (in response to berna)see http://www.techienuggets.com/Detail?tx=17739
it seems that the problem comes from RI -
2. Re: selectOneMenu preselection
berna Dec 23, 2007 8:21 PM (in response to berna)Thanks DragosPD for the pointer.
I will try with MyFaces implementation sometime next week. Any other alternatives? Known solution or workaround? This is quite a common usage I believe, and surely there have been others finding this issue. I would like to hear what you guys do to resolve this.
Thanks, appreciate your helps. -
3. Re: selectOneMenu preselection
koenhandekyn Feb 15, 2008 7:24 AM (in response to berna)i ran into the same issue. feels like a SERIOUS bug to me. at worst it should get in the seam documentation, but a fix is preferred.
curious on your experiences or alternative solutions ! -
4. Re: selectOneMenu preselection
pmuir Feb 17, 2008 3:09 PM (in response to berna)Override equals on the entity.
-
5. Re: selectOneMenu preselection
koenhandekyn Feb 18, 2008 3:22 AM (in response to berna)i had already overriden hashCode en equals. that was/is not the issue as far as I can conclude.
[ an object is equal if it has the same object ID, if no ID is present, values are compared, hashCode accordingly, using apache EqualsBuilder and apache HashCodeBuilder ]
the only wat to fix it was to turn of LAZY loading of the related property.
putting it on EAGER solves it. -
6. Re: selectOneMenu preselection
koenhandekyn Feb 18, 2008 3:23 AM (in response to berna)adding to it : it probably is NOT a real "seam" issue but a conflict of hibernate lazy loading (using proxy) and the JSF implementation