GeeCON Prague 2014*
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


JavaRanch » Java Forums » Java » JSF
Bookmark "empty input validation" Watch "empty input validation" New topic
Author

empty input validation

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
Hi

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: 15299
    
    6

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.
 
GeeCON Prague 2014
 
subject: empty input validation