2 Replies Latest reply on Sep 20, 2011 8:25 AM by teri-chan

    Custom Richfaces 4 picklist

    teri-chan

      Hi everyone,

      i had a project developped with Richfaces 3.3, and i migrated it to Richfaces 4.1 M1 (to be able to use Editor and Picklist). It works fine, but i wondered one thing: how can i change (or even better, disable) labels on the picklist buttons?

       

       

      It's a real problem for me, as the buttons have various length, and more important i need to localize my application...

        • 1. Re: Custom Richfaces 4 picklist
          ppitonak

          Hi Philippe,

           

          if I remember correctly, buttons with various length were a know issue in M1 and should be fixed in M2 which will be released soon.

           

          To change labels use following attributes of rich:pickList:

          • addAllText
          • addText
          • removeText
          • removeAllText

           

          Regards,

          Palo

          1 of 1 people found this helpful
          • 2. Re: Custom Richfaces 4 picklist
            teri-chan

            Thanks, it worked perfectly. And if anyone wonders, the captions for the lists are:

            • sourceCaption
            • targetCaption