1
I have the following scenario :
<h:form id="formValor">
<p:growl id="growlMessage" showDetail="true" autoUpdate="true" showSummary="false" />
<p:tabView id="tabViewVinculo" dynamic="true" widgetVar="tabViewVinculo"...>
<p:tab id="tab1">
<p:input id="inputValue" value="{beam.valor}" required="true" />
</p:tab>
<p:tab id="tab1=2">
<p:input id="inputValue2" value="{beam.valor2}"/>
</p:tab>
<p:commandButton id="buttonConfirmar" value="Submit" process="@form" validateClient="true" update="growlMessage" .../>
</form>
Having this scenario I would like to customize the message displayed in Growl that comes as follows:
"formValue:inputValue: Validation error: the value is required."
NOTE: I would not like to have changed the component "p:Growl" to "p:message"
**Recital tab 2 active****
It doesn’t work @Rafael, This "requiredeMessage" is only working in fields that have 'Validator="#{bean.validarIdade}" '
– Cristiano
This input you posted in your code is correct?
– Rafael
in fact my scenario and a little more complex... I edited the question.
– Cristiano
If it is not working it is for two reasons, it may be that the input is not being processed or its value is not empty.
– Rafael
Hello @Rafael, thanks for the attention follow here my solution. blogs.oracle.com/johnc/entry/more_jsf_validation_custom_error
– Cristiano