File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes empty input validation 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 "empty input validation" Watch "empty input validation" New topic

empty input validation

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77

In the jsf page I have one submit button to do the query processing for the given input value. I added validator so that if in case of empty input it will give the error message.

I have one command link for logoff in the same page.

My problem is whenever I click the logoff button, the empty input error message is raised. Is there is any way to overcome the validation check while clicking the logoff link.

Any pointer towards this really helpful.

thanks in advance.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Look into the immediate attribute. This is a pretty common issue.

GenRocket - Experts at Building Test Data
cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
Thanks. I got it.
I agree. Here's the link:
subject: empty input validation
It's not a secret anymore!