Hi James,
While the implementation's not a big deal, and you'll probably want
one, "Choose One" is the default for when the selected (or
pre-selected) item's not found in the DDC list of values, so I don't
think it's directly that. I'd be tempted to double-check (either via
logging or via a debugger) that all the data's there as expected
(although an anonymous implementation of a IChoiceRender's as good a
way as any of having somewhere to set a breakpoint!)
/Gwyn
Monday, November 5, 2007, 2:54:09 PM, you wrote:
JP> Hello Dima,
JP> That was my initial assumption but I already have overrided my
JP> equals()/hashCode() methods for Manufacturer's "business key" in Hibernate
JP> and ensured my HQL query retrieves Manufacturer objects. Do I need to add an
JP> implementation of IChoiceRendered as an argument to DDC?
JP> Thanks,
JP> James.
JP> 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]