3 Replies Latest reply on Mar 27, 2009 7:18 PM by Norman Richards

    Dynamically add component definition

    jk;l jkl; Expert

      How can I dynamically add a component definition to components.xml. I've defined several similar components using the <component> tag in components.xml, and it's now getting difficult to maintain. Is there a way to add these definitions programmatically?


      If my component is as follows in components.xml, how can I add the same definition programmatically?



      <component class="MyClass" name="myName">
        <property name="myProp">myValue</property>
      </component>