javascript - Render full calendar scheduler on primefaces layout -


i unable render full calendar scheduler on primefaces center layout. have included following .js in index.xhtml

<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"/> 

in "myscheduler.js" have:

$(document).ready(function () { // document ready  jquery('#calendar').full({     schedulerlicensekey: 'gpl-my-project-is-open-source', 

and using fullcalender scheduler <div> under primefaces center layout in body of index.xhtml below:

<p:layoutunit position="center">             <h:panelgroup layout="block">                 <div id='calendar'/>             </h:panelgroup>                           </p:layoutunit>  

solved adding below include in header of .xhtml:

h:outputscript library="primefaces" name="jquery/jquery.js" target="head"/> 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -