I'm using a selectMany coupled with a
Code: Select all
p:ajax
here is my xhtml file :
Code: Select all
<p:panel id="liste-employes" header="employés" rendered="#{sessionBean.isUserInRole('admin') || sessionBean.isUserInRole('dirigeant')}" toggleable="true">
<h:form>
<h:selectManyCheckbox value="#{schedule.selectedItems}" id="selected-items" >
<f:selectItems value="#{schedule.selectItems}" />
<p:ajax update="liste-conges" event="change" actionListener="#{schedule.onSourcesChange}"/>
</h:selectManyCheckbox>
</h:form>
</p:panel>
<div id="conges">
<p:messages />
<h:form prependId="false">
<p:schedule id="liste-conges" value="#{schedule.visualiseurConges}" editable="false" resizable="false" widgetVar="mesConges" />
</h:form>
on my backing bean method I simply add events using DefaultScheduleModel.addEvent()
The only problem is that each time the schedule is updated it goes back to the current date month , but what I need is for it to stay in the last selected month; is there any way to accomplish this?
thanks in advance