When loading events for my PF schedule it is sometimes possible that exception occures. Is it posiible to somehow notify the user (using growl component) that such a situation occured?
EDIT:
This is how the exception is caught:
catch (Exception e) {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,"Sample error message", "Sample Error"));
RequestContext.getCurrentInstance().update("scheduleForm:scheduleGrowl");
e.printStackTrace();
}
And this is the part of the xhtml where the schedule component is defined:
<ui:define name="content">
<h:form id="scheduleForm">
<p:growl id="scheduleGrowl" showDetail="true" autoUpdate="true" sticky="true"/>
<p:schedule value="#{scheduleController.scheduleModel}"
view="agendaDay" slotMinutes="15" resizable="false"
draggable="false" firstHour="8"
locale="${localeResolver.staticLocale}"
axisFormat="${localeResolver.defaultTimeFormat}"
timeFormat="${localeResolver.defaultTimeFormat}"
>
</p:schedule>
</h:form>
</ui:define>