6 Replies Latest reply on Feb 18, 2009 3:11 PM by Nick Belaevski

    Richfaces and Jquery Datepicker

    Allan S,K. Newbie

      Hi all,

      I'm trying to use Jquery Datepicker with richfaces:

      <ui:define name="extraHeaderContent">
      <a4j:loadStyle src="css/jquery.css"></a4j:loadStyle>
      <a4j:loadScript src="js/jquery-1.3.1.js" />
      <a4j:loadScript src="js/jquery.ui.all.js" />
      </ui:define>

      <h:inputText
      id="mydate"
      value=""
      label="test"
      size="20"/>

      <rich:jQuery selector="#mydate" name="mydate" query="datepicker({changeMonth:true,changeYear:true})" timing="onload"/>

      With this code, clicking in the calendar field appears, but when you click in the calendar day to populate field, the error is displayed:

      uncaught exception: Missing instance data for this datepicker
      [Break on this error] var id = elem[ expando ];

      Help???