Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Multichoice combo and mapValueToDisplay / mapDisplaytoValue

    I'm trying to implement multichoice combobox as a custom FormItem control with icon (like in showcase example).

    How can I implement standard combobox mechanizm of hidden real value and displayed user-friendly text?

    I assume that this control will get real value (submited by form) of some comma separated id's but I would like to show in form those Id's mapped to some names.
    The dialog with grid that is displayed to edit those values will update both hidden value and display text.

    I have found that I should provide mapValueToDisplay and mapDisplayToValue, but those lack documentation... another thing is - how to provide those from GWT, possibly with no coding in JS :)

    TIA

    #2
    what methods should I call to set "hidden value" or "displayedText"

    or which value (hidden or displayed) should I pass to setValue?

    Comment


      #3
      never mind... solved by myself :)

      just implemented mapValueToDisplay and mapDisplayToValue and attached it in simple native function called in constructor.

      works great :)

      Comment


        #4
        Can you post the relevant code so that others can benefit from it as well.

        Thanks,
        Sanjiv

        Comment


          #5
          Originally posted by sjivan
          Can you post the relevant code so that others can benefit from it as well.

          Thanks,
          Sanjiv
          i am interessted in this code too :).
          i have currently the same problem.

          Comment

          Working...
          X