How do you prevent editing/moving events on the schedule?
I could reset the date on the moveEvent() but this would not stop someone from dragging it.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1) DRAGGING: Use the draggable attribute of
<p:schedule>set it to false or bind it to a bean property.2) Editting: remove the listener from the eventSelect.
PS: you did not specify PF version, i am using 3.3.1
PS2: if you leave the commented line your JSF may throw an error http://www.mkyong.com/jsf2/how-to-use-comments-in-jsf-2-0/