This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 17014

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: validation error message
jQuery in Action, 3rd edition