Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3145

Uncaught TypeError in butterfaces-applicant-portlet on Liferay

    Details

      Description

      Steps to Reproduce:

      1. Deploy the butterfaces-applicant-portlet to Liferay 7
      2. Add the butterfaces-applicant-portlet to a portal page
      3. Reload the portal page

      Expected Results

      No JavaScript errors in the console and the user is able to select a date-of-birth with the ButterFaces date picker.

      Actual Results

      The following JavaScript error appears in the console:

      butterfaces-applicant:12 Uncaught TypeError: jQuery(...).find(...).datetimepicker is not a function
          at HTMLDocument.<anonymous> (butterfaces-applicant:12)
          at l (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:2)
          at Object.fireWith [as resolveWith] (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:2)
          at Function.ready (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:2)
          at HTMLDocument.s (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:1)
      

      Note that if the <b:calendar ... /> component tag is replaced with the following:

      <h:inputText id="dateOfBirth" label="#{i18n['birthday']}" required="true"
      	 value="#{applicantModelBean.dateOfBirth}">
      	<f:convertDateTime pattern="#{portletPreferencesValues['datePattern'][0]}" />
      	<f:ajax render="dateOfBirth" />
      </h:inputText>
      

      Then a similar error appears:

      butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:26 Uncaught TypeError: n.popover is not a function
          at HTMLDivElement.<anonymous> (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:26)
          at Function.each (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:1)
          at oe.fn.init.each (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:1)
          at oe.fn.init.t.fn.butterTooltip (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:26)
          at oe.fn.init.t.fn._butterTooltip (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:26)
          at HTMLDocument.<anonymous> (<anonymous>:2:123)
          at l (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:2)
          at Object.add [as done] (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:2)
          at oe.fn.init.oe.fn.ready (butterfaces-applicant?p_p_id=1_WAR_comliferayfacesdemobutterfacesapplicantportlet_INSTANCE_ABCD&p_p...:2)
          at <anonymous>:1:18
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-ext-5.0.1