The life attribute of the Growl component works only the first time

0

We are running a project in JSF using PrimeFaces (v5.0) and have created a simple validation for blank fields in our form.

The first time it is fired, the component performs the actions correctly. If the user again forgets some blank field, the second time p: growl is called it simply stays on the screen permanently, even the sticky attribute set to false.

Below the growl that I use along with an example field that I check for validation:

<p:growl id="growl" sticky="false" life="1800"/>

<h:outputLabel for="nomePessoa" value="Nome Completo"/>
<p:inputText type="text" class="form-control form-control-lg" id="nomePessoa"value="#{PessoaMB.pessoa.nome}" placeholder="Nome" required="true" requiredMessage="Nome não informado!">
    
asked by anonymous 04.04.2018 / 15:28

1 answer

0

Try this:

<p:growl id="growl" sticky="false" autoUpdate="true" life="1800"/>
    
15.05.2018 / 21:22