5 Replies Latest reply on Aug 5, 2008 9:47 AM by David Greenberg

    Leveraging existing components with CDK

    David Greenberg Newbie


      I am sure that there is an easy way to do this, but I have not yet figured out how. After reading every article I could find on Google and in the forums about using CDK to create custom components, I decided to ask here.

      Creating a simple component with CDK is easy enough. My problem is creating one that leverages all the functionality of existing components. Here is an example of what I would like to have in my htmlMyCustomComponent.jspx file (it obviously does not work):

      <f:root xmlns....>
       <f:clientid var="clientId" />
       <a4j:outputPanel id="#{clientId}Panel">
       <rich:calendar id="#{clientId}Calendar" />
       <h:inputText id="#{clientId}Input" />
       <rich:suggestionbox id="#{clientId}Suggestion"
       suggestionAction="#{component.searchBean.search}" />

      Basically, I am looking for a way to integrate these components into a new component without rewriting their functionality or playing with their source code. Is there some way to do this?

      Thank you,