I'm trying to use p:schedule like showcase.
The schedule appear normaly but I'm not able to open dialog box when selecting an event.
my schedule code :
Code: Select all
<p:schedule value="#{agendaBean.model}" locale="fr" widgetVar="agendaUtilisateur" >
<p:ajax event="eventSelect" listener="#{agendaBean.eventDetail}" oncomplete="detaildialog.show()"/>
</p:schedule>
but this dialog box doesn't appear:
Code: Select all
<p:dialog widgetVar="detaildialog" header="détails">
<h:panelGrid columns="2" id="detail">
<p:commandButton id="ok" value="Ok" oncomplete="PF('agendaUtilisateur').update();PF('detaildialog').hide();"/>
</h:panelGrid>
</p:dialog>