I have defined a growl in my form: <p:growl id="growl" showDetail="true" />
This is called under specific circumstances:
import javax.faces.context.FacesContext;
import javax.faces.application.FacesMessage;
ivy.log.error("First Step after ablehnen");
ivy.log.error("Aprrover " + in.eingangsrechnungData.nextFachApprover);
if (in.eingangsrechnungData.nextFachApprover.isBlank())
{
FacesContext.getCurrentInstance().addMessage("growl", new FacesMessage(FacesMessage.SEVERITY_ERROR,"Fehler","Sie können nicht ablehnen ohne die Angabe eines nächsten Genehmigers"));
//FacesContext.getCurrentInstance().validationFailed();
}
I have also tried to use "null" instead of "growl" in addMessage.
In Ivy Log there is an entry:
2022-04-13 18:32:48.141 WARN [org.apache.myfaces.lifecycle.RenderResponseExecutor] [ajp-nio-127.0.0.1-8008-exec-2] [request=/ivy/faces/instances/ip/EingangsrechnungsWf$3/18023C4F34D5CD1F/eingangsrechnungswf.Genehmigung/Genehmigung.xhtml, session=19205 (testinpointadmin), task=145697, application=6703, requestId=70335, executionContext=SYSTEM, pmv=ip$EingangsrechnungsWf$3, client=::1, hd=eingangsrechnungswf.Genehmigung]
There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered.
These unhandled FacesMessages are:
- Sie können nicht ablehnen ohne die Angabe eines nächsten Genehmigers