The jQuery ID selector should match the exactly generated HTML client id, which you can see when you do a rightclick and view the source in a browser.
Instead, use hook for the class name instead, it also allows you to select multiple elements. For instance.
$(".datepicker").datepicker({ showOn: "button", buttonImage: "images/calendar.gif", buttonImageOnly: true });
with
<h:inputText value="#{listModel.creationDate}" styleClass="datepicker" valueChangeListener="#{listController.filterFieldChanged}"> <f:convertDateTime pattern="yyyy-mm-dd"/> </h:inputText> <h:inputText value="#{listModel.updateDate}" styleClass="datepicker" valueChangeListener="#{listController.filterFieldChanged}"> <f:convertDateTime pattern="yyyy-mm-dd"/> </h:inputText>
source share