Hello Dima,

That was my initial assumption but I already have overrided my
equals()/hashCode() methods for Manufacturer's "business key" in Hibernate
and ensured my HQL query retrieves Manufacturer objects. Do I need to add an
implementation of IChoiceRendered as an argument to DDC?

Thanks,
James.

On 11/5/07, Dmitry Kandalov <[EMAIL PROTECTED]> wrote:
>
> On Monday 05 November 2007 16:39:02 James Perry wrote:
> > I have a problem with the DropDownChoice. More specifically, I have a
> > Product class which is like:
> >
> > public class Product implements Serializable {
> >
> >     private static final long serialVersionUID = 1L;
> >
> >     private Manufacturer manufacturer;
> >     //other states
> >
> >     //getters and setters
> >
> > }
> >
> > I have a form which allows to edit a product, which allows to change the
> > manufacturer object with a DropDownChoice. However, an Xbox product for
> > instance, it should display its Microsoft manufacturer object as
> selected
> > but it selects 'Choose One' instead.
>
> May be choices and value in the DDC are different java objects and you
> didn't
> implement equals(), hashCode() in Manufacturer class?
>
> Dima
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to