-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: bridge-ext-5.0.0
-
Fix Version/s: bridge-ext-5.0.1
-
Component/s: Liferay Faces Bridge Ext
-
Labels:None
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