aspose 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 Java 8 in Action this week in the Java 8 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: 15290
    
    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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: empty input validation
 
Similar Threads
How to Skip automatic struts validation if more than 1 submit button present?
how to delete cookie and temporary internet files using java
Proper way to show error page
struts2 doubt regarding result name="input"
How to disable back button of browser after session invalidation?