我在弹出模式下使用primefaces timepicker标签。弹出窗口没有出现。
xhtml代码:
<h:body>
<h:outputText value="Time picker Popup mode"/>
<pe:timePicker value="#{viewEmployeesManagedBean.time1}" mode="popup" widgetVar="popupTimeWidget"
label="Popup time picker"/>
</h:body>
</html>
开发者工具错误:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><body>Time picker Popup mode<span id="j_idt4" class="pe-timepicker ui-widget ui-corner-all"><input id="j_idt4_input" name="j_idt4_input" type="text" autocomplete="off" class="ui-inputfield pe-timepicker-input ui-state-default ui-corner-all" /></span><script id="j_idt4_s" type="text/javascript">$(function(){PrimeFaces.cw("ExtTimePicker","popupTimeWidget",{id:"j_idt4",timeSeparator:":",myPosition:"left top",atPosition:"left bottom",showPeriod:false,showPeriodLabels:false,modeInline:false,modeSpinner:false,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5},rows:4,showHours:true,showMinutes:true,showCloseButton:false,showNowButton:false,showDeselectButton:false,locale:"en_US",disabled:false,defaultTime:""});});</script></body>
</html>
未捕获的ReferenceError:未定义$ 在index.xhtml:2