File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes validation error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "validation error message" Watch "validation error message" New topic

validation error message

sumitha arjunan

Joined: Sep 18, 2006
Posts: 9
Hi friends,

Can we avoid a error message specific to a particular validation in a JSF page. I need other error messages to be displayed. only the validation that is happening in th epop up should not display the error message in the main JSF page.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

A validation is a pass/fail check of data. If you discard the error message, the page update won't proceed, but the user won't be able to tell why.

You can select where on the page the message displays, using the "message for=" tag, but actually a popup has its downside, since once dismissed, there's no longer an indication of a problem on the displayed page.

An IDE is no substitute for an Intelligent Developer.
sumitha arjunan

Joined: Sep 18, 2006
Posts: 9
actually my requirement is, not to display the error message in the main page for a particular validation happening in the pop up window instead should display it in the pop up window itself. we are using some custom components in doing the validation part.
i am not sure of how to avoid a particular validation error message in a particular page

by usning the below tag i can stop for all the error messages, not sure of how to restrict it for a partidular error message.
<v:messages showSummary="false" showDetail="false" styleClass="ErrorMessage"/>
I agree. Here's the link:
subject: validation error message
It's not a secret anymore!