I want to be able to create a search component within my application and reuse it in various places (but as a brand new component).
I can see how I can define the component itself many times in the components.xml file by not defining the @Name attribute, but the one thing I can't see how to configure within the xml file is the DataModel and DataModelSelection sections. Obviously I can define the component many times in java by extending the base class and defining individual data models and the selected value that is to be outjected, but I was hoping to find a solution to reduce the amount of code that needs to be written to achieve this.
Any ideas? Or is this even possible with this approach??