5 Replies Latest reply on Feb 9, 2010 6:36 AM by Juergen Schumacher

    Extending components with CDK?

    Juergen Schumacher Newbie

      Hello,

      Is it possible to extend existing components with the Richfaces CDK? And if the answer is yes, you may have an example?

       

      Thx a lot,

      juergen

        • 1. Re: Extending components with CDK?
          Nick Belaevski Master

          Hi Juergen,

           

          First of all, you can specify existing component class as base class for the generated component - almost all RF components are extending standard behavioral classes, like UIInput, UIOutput, etc. Extension of renderer classes compiled from CDK templates can be hard as there are not many entry points for that.

           

          Can you please clarify further what kind of extension do you need?

          1 of 1 people found this helpful
          • 2. Re: Extending components with CDK?
            Juergen Schumacher Newbie

            Hi Nick,

            thank you for your reply. I need to extend the SuggestionBox component. The component shall become more features. Here is the list of new features:

            • New graphical presentation (small marker to recognize that it is a list)
            • When leaving with the TAB-Key the typed characters should be taken for the value (the standard is that the component get the first element in the list as far there is any autocomplete list values)
            • Click via mouse within the field shall already expand the complete suggestionlist

             

            Maybe you have a recommedation if it is a good idea to use the CDK for those purposes.

             

            Thank in advance,

            juergen

            • 3. Re: Extending components with CDK?
              Juergen Schumacher Newbie
              Oopps...this was not intened...
              • 4. Re: Extending components with CDK?
                Nick Belaevski Master

                Juergen,

                 

                • New graphical presentation (small marker to recognize that it is a list)

                This can be achieved by CSS customization or changes in renderer code.

                 

                • When leaving with the TAB-Key the typed characters should be taken for the value (the standard is that the component get the first element in the list as far there is any autocomplete list values)

                This requires JavaScript code modification.

                • Click via mouse within the field shall already expand the complete suggestionlist

                Can be implemented via external button & JS API.

                 

                I think it's not possible to implement this via extending component, so you can import existing suggestionbox project from SVN, customize it and build.

                • 5. Re: Extending components with CDK?
                  Juergen Schumacher Newbie

                  Nick,

                   

                  Thank you a lot for your recommendations.

                   

                  Cheers,

                  juergen