Give the JSF component that generated the HTML element with id="j_idt17" fixed identifier. In this particular case, it is likely the element of the parent HTML <form> element that is generated by the JSF <h:form> component.
So this should do:
<h:form id="form">
Thus, the identifier of the generated HTML element <input> becomes form:search .
source share