INFO: WARNING: FacesMessage has been queued but may not be displayed

I created a user interface with a form to receive information from the user. When I submit the form, it prints the following warning in the server log:

INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. sourceId=j_idt7:j_idt11[severity=(ERROR 2), summary=(j_idt7:j_idt11: Validation Error: Value is not valid), detail=(j_idt7:j_idt11: Validation Error: Value is not valid)] 

I tried to solve it, but I did not understand how to do it. How did this problem arise and how can I solve it?

+8
jsf message
source share
3 answers

As for the warning that refers to the non-display message Validation Error: Value is not valid , this means that you have a component <h:selectXxx> such as <h:selectOneMenu> without the associated <h:message> , and therefore the JSF does not can display conversion messages / verification errors directly in the user interface.

To fix a specific warning, simply add <h:message> :

 <h:selectOneMenu id="foo" ... /> <h:message for="foo" /> 

Please note that when you submit the ajax form using <f:ajax> , you should not forget to include messages in the ajax update. To get started, use render="@form" to update the entire form.

For the specific error of the verification error mentioned in the message, go to the following answer: Verification error: value is invalid .

+10
source share

If you use simple characters, be sure to add:

  <h:form> <p:growl id="messages" showDetail="true" /> .... </h:form> 
0
source share

This is a problem with an invalid value. Most likely you entered a character instead of an integer value. Check this out and I propose exception handling so that you no longer run into similar issues.

-one
source share

All Articles