Add a hint to the PrimeFaces p: schedule event?

Is there a way to add a mouse to the tooltip for the p: schedule event?

Thanks,

Rob

+4
source share
2 answers

Did you mean PrimeFaces Growl or a tooltip? Tooltip is usually used for components that have the TITLE attribute to show a tooltip, usually above the mouse. You cannot add a hint to the event, but most likely a component like: a <p:commandButton or <p:graphicImage ..etc for events you better use <p:growl />.

Example:

 <p:growl id="mygrowl" global="true" /> <p:commandButton actionListener="#{myBean.MyActionListener}" update="mygrowl" />. 

Just see if there is a <p:schedule /> eventlistener attribute.

If you want to make sure: Add between

 <p:tooltip global="true" /> <p:growl showDetail="false" showSummary="true" id="globalgrowl" life="3000"/> 

Then

-1
source

Use the tooltip attribute. Since Primefaces 6.0 are available for setting to true, and each event can load its own description.

<p:schedule tooltip="true"/>

You must add a description to the event, of course.

e = new DefaultScheduleEvent();
e.setDescription("<p:outputText value='" + obj.title + "' />");

+2
source

All Articles