Javascript 在primefaces布局上呈现完整日历计划程序
我无法在primefaces中心布局上呈现完整的日历计划程序。我在index.xhtml中包含了以下.jsJavascript 在primefaces布局上呈现完整日历计划程序,javascript,jquery,primefaces,fullcalendar,Javascript,Jquery,Primefaces,Fullcalendar,我无法在primefaces中心布局上呈现完整的日历计划程序。我在index.xhtml中包含了以下.js <h:outputStylesheet library="css" name="fullcalendar.min.css"/> <h:outputStylesheet library="css" name="scheduler.min.css"/> <h:outputScript library="js" name="jquery.min.js" targ
<h:outputStylesheet library="css" name="fullcalendar.min.css"/>
<h:outputStylesheet library="css" name="scheduler.min.css"/>
<h:outputScript library="js" name="jquery.min.js" target="head"/>
<h:outputScript library="js" name="moment.min.js" target="head"/>
<h:outputScript library="js" name="full.min.js" target="head"/>
<h:outputScript library="js" name="scheduler.min.js" target="head"/>
<h:outputScript library="js" name="myScheduler.js" target="head"/>
我正在index.xhtml的主体中primefaces中心布局下使用FullCalendar调度程序
,如下所示:
<p:layoutUnit position="center">
<h:panelGroup layout="block">
<div id='calendar'/>
</h:panelGroup>
</p:layoutUnit>
通过在.xhtml的标题中添加以下内容来解决:
h:outputScript library="primefaces" name="jquery/jquery.js" target="head"/>
fullcalendar的配置代码在哪里?请提供更多代码。@ChintanMirani我已经编辑了我的帖子。很抱歉。在使用PrimeFaces时不应该自己添加jquery。我应该删除jquery吗?如果我删除它,它将显示缺少jquery(jquery未定义)。
h:outputScript library="primefaces" name="jquery/jquery.js" target="head"/>