Extracted TemplateSearch into a CustomComponent with a ValueChangeListener and Event.