I have added component to my xhtml, to catch dateSelect event on p:calendar component. It also uses my custom validator, which throws exception if date is from the wrong range. I want to display error message in p:message, but it is displayed in both p:message and growl. How can I disable displaying this message in growl?
I tried different things. I tried to somehow disable p:growl component, but with no result.
Here is my calendar component with ajax:
<p:calendar id="dbstartdate" tabindex="3"
styleClass="calrequested" style="width:99px;"
showButtonPanel="true">
<p:ajax event="dateSelect"
listener="#{MyBean.saveDateRange}"
update=":dashboard_frameset"/>
</p:calendar>
I tried e.g. something like this:
<p:growl for="dbstartdate" rendered="false"/>
and the same for p:ajax (I added id there).
Unfortunately, it was unsuccessful. Does anyone of you has idea how to disable growl from p:ajax? Thanks in advance!
for="dbstartdate"
that explicitly references thep:calendar
. Why not just remove it? But what is your 'custom validator'? A real validator should not throw exceptions. But maybe a 'global only' would help? – Kukeltje