First the use of a converter for a drop down is in my eyes very strange, why
are you doing that?
Why it is strange is that for a drop down the converter is the IChoiceRender
that makes from a
Object a ID String and a Display String. And when it comes back it makes an
Object again from the ID.

So how do you use the DropDownChoice and a converter?
Do you set the type (choice.setType(Class)) ??
If you set the type then you should get the input (the ID String) in the
converter:

final IConverter converter = getConverter();
try
{
  convertedInput = converter.convert(getInput(), type);

johan


On 12/14/06, Izaias Miguel <[EMAIL PROTECTED]> wrote:

hi,

in a DropDownChoice, a defined a CustomConverter which takes the value and
converts it into an enum. But I'm having a problem because tha value
received by the CustomConverter is the display value of the DropDownChoice,
instead the id value (once I defined an IChoiceRenderer and they are
different). How can I receive the id value by the converter?


IzaĆ­as Miguel


Reply via email to