yup, indeed :) thanks kai.

anyway, it was more about feeling it's not "the right way to do it". i
have labels all around (in the converter, in the renderer, and even
overriding the defaultNullLabel() method).

plus, i can't get rid of the "Choose one" .... what i want is:
unknown value == null in model == "Unknown" as label in UI
affirmative value == Boolean.TRUE in model == "Yes" as label in UI
negative value == Boolean.FALSE in model == "No" as label in UI

any good practice for doing this with the ajax component? i don't seem
to achieve it in a proper manner.

and i haven't found the DropDownChoice's isNullValid() . how can i set it?

thanks again. cheers,
francisco

On Wed, Mar 19, 2008 at 5:55 AM, Kai Mütz <[EMAIL PROTECTED]> wrote:
> francisco treacy schrieb:
>  > hi,
>
> >
>  > and i'm instantiating the component like this:
>  >
>  > setModel(new CompoundPropertyModel(doctor));
>  > (...)
>  > add(new CustomAjaxEditableChoiceLabel("free").setOutputMarkupId(true));
>  >
>  > this is working very well, except for the labels when i enter the
>  > dropdown mode.... i still see "true", "false", (blank). i want my
>  > labels also to be displayed when entering in "edit mode".
>  >
>  > i read about IChoiceRenderer and i even implemented one, but i can't
>  > use it with the CompoundPropertyModel (?).... cause in my component
>  > constructor i can't do
>  > super(id, Arrays.asList(Boolean.TRUE, Boolean.FALSE, null), new
>  > CustomDropDownRenderer());
>  >  (i need to pass in a Model, which is not updated as it is with the
>  > compound one. or how would you do?)
>
>  Have you tried
>  super(id, new PropertyModel(doctor, "property"),
>
> Arrays.asList(Boolean.TRUE, Boolean.FALSE, null), new
>  CustomDropDownRenderer());
>  ?
>
>  Kai
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to