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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15286

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

GenRocket - A Test Data Generation Platform
cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
Thanks. I got it.
I agree. Here's the link:
subject: empty input validation
Similar Threads
How to Skip automatic struts validation if more than 1 submit button present?
struts2 doubt regarding result name="input"
how to delete cookie and temporary internet files using java
Proper way to show error page
How to disable back button of browser after session invalidation?