I'm currently trying to use a AjaxEditableChoiceLabel for the first time. Everything works fine (displaying dropdown choice editor, retrieving/updating business object), except displaying the label value when the inplace dropdown choice is inactive. Instead of the selected values name it displays the object itself.

AjaxEditableChoiceLabel ajaxEditableLabelUsertype =
  new AjaxEditableChoiceLabel(
    "usertype",
    new PropertyModel(user, "usertype"),
    Manager.getUsertypes(),
    new ChoiceRenderer("name", "id")
  );

Class User has an Attribute of Class UserType which has an id and a name. Manager.getUsertypes() returns all available Intances of UserType.

When the Editor is not invoked, the label should display user.getUsertype.getName(). Right now it displays user.getUserType(). The choices inside the dropdown choice when its invoked are right (the names).

What am I doing wrong? Thanks for any help on this.

Roman

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to