File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: empty input validation
 
Similar Threads
how to delete cookie and temporary internet files using java
How to disable back button of browser after session invalidation?
Proper way to show error page
struts2 doubt regarding result name="input"
How to Skip automatic struts validation if more than 1 submit button present?