I have created a facelet page with one inputtext and datatable. This datatable will populate data from DB based on the input-text, We are going to use this facelet for look-up function in our application, and this will be used in more than one page or form. My question here is can we make that look-up facelet as a custom 'SearchButton' tag so that developers will add this SearchButton tag with two attributes (columns to populate and DB-tablename) to populate data. Also note that my look-up facelet has been made with Primefaces UI component.
Please throw some light to develop this custom JSF component.
Rgds Balaji