On Wednesday 11 January 2006 15:26, Michael Prescott wrote:
> Are you able to use a debugger to see what's being compared by the
> PropertySelection?  It uses Java object identity as a first comparison,
> so from your usage, the objects' equals() methods may not even be
> involved.

Yes, what I see is:
(in renderFormComponent, line 92)
value = [EMAIL PROTECTED]
option = [EMAIL PROTECTED]

where value is customer.standing and option is the CustomerStanding object 
that should be the same object as it references the same database record.

I did not override the equals() method.  Well, actually I tried that and got a 
NPE for my troubles.  Then, I read further and it seems that the hibernate 
folk do not recommend replacing equals()--and that doing so should be 
unnecessary within the same session...

> I'm wondering if you've made a mistake in your IPropertySelectionModel.
> Option, label and value are easy to mix up.  The IPropertySelectionModel
> Javadocs refer to the first of those as 'option value', which doesn't
> help.
>
> (The options are the underlying objects which are used by the
> comparison, and label and value are used in the HTML.)

Yeah, it was a bit confusing, but I think I've got that part right, at least.

Thanks,
-Jason

>
> Michael

-- 
In this vale
Of toil and sin
Your head grows bald
But not your chin.
                -- Burma Shave
--------------
Jason Dyer
BlueTarp Financial, inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to