0 Replies Latest reply on Aug 12, 2008 5:45 PM by gwzoller

    inplaceSelect and fancy Enum handling

    gwzoller

      Hello,

      I'm struggling with how to represent special handling of an enum with inplaceSelect (using Seam).

      I have an enum with values like this:

      public static enum FOO {AB, CD, EF};


      Now I want an inplaceSelect to use these values, but---when the pull-down menu is displayed I want to show a more detailed description but when the value is selected only the 2-digit code is to be shown in the field.

      So for example the pull-down might show values of:

      AB -- Something
      BC -- Something else
      EF -- Another option

      And if the user selects the second option then only "BC" will show in field when the pull-down menu closes.

      Any ideas how to accomplish this behavior?

      Thanks,
      Greg