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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Question success validation message" Watch "Question success validation message" New topic

Question success validation message

jules poit

Joined: Oct 06, 2009
Posts: 9
Hello guys

I have a little question on the validation in JSF, I googled it but there is not much information :/

Basically I have a form, and I am doing a basic validation :

Everything is working how it should when the information are not inputed with the good values, but when all the values are good, I would like to display a message on the same page like : "Modifications applied", but I do not know how to do that :-/ I am seeing a passedLabel in the messages but how should I use that ?

Thanks for your help
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17278

I keep a special utility class for stuff like this. It allows me to keep JSF-specific code out of my backing beans, which makes it easier to test them and to use them for non-JSF purposes.

An IDE is no substitute for an Intelligent Developer.
jules poit

Joined: Oct 06, 2009
Posts: 9
Thanks for your answer,
I looked at it at I did exactly like that, I created a class that will handle all the messages for my project, and It is working great !

I agree. Here's the link:
subject: Question success validation message
It's not a secret anymore!