P:Schedule unable to select event

UI Components for JSF
Post Reply
Pat_lec
Posts: 4
Joined: 23 Aug 2015, 12:26

22 Apr 2016, 22:56

Hi

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>
the listener is called (check in debug mode)

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>
PrimeFaces 5.3
BootsFaces 0.8
JSF2.2 by GlassFish4

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

23 Apr 2016, 20:24

probably you should use PF('detaildialog').show() ? ;)
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Pat_lec
Posts: 4
Joined: 23 Aug 2015, 12:26

27 Apr 2016, 22:06

Yes you are correct.
It work
Thank you
PrimeFaces 5.3
BootsFaces 0.8
JSF2.2 by GlassFish4

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 60 guests