Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Event Calendar with component p: shedule of primefaces  RSS feed

 
Gomes Silva
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem to display a popup with the information of the registered event. I would like the user to hover over a particular event exhibited only the description of the event without having to click on the event to view information.
I would like to make an ajax request to that was displayed a popup.
But do not know how to implement jquery and javascript. Well, I am new to programming

My code that generates the schedule is as follows:



In my Bean have methods that make the selection of date and event.

Have I configured the option of setEditable to true.

Could anyone help me with an ajax function, jquery or javascript to show the popup containing only observation and event date. And looked at the documentation of primefaces and not found any implementation to solve my problem.
 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Enclose your schedule in a div: <div onclick="savePosition(event.pageX,event.pageY);">
2. Add an event for the schedule: <p:ajax event="eventSelect" listener="#{myMB.onEventSelect}" update="my_dialog" global="false" oncomplete="showContextDialog();"/>
3. Add the following JS:


Works like a charm ;) The only downside is that the popup appears exactly where you click, hope you can live with that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!