This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes validation on submit and not on other page actions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation on submit and not on other page actions?" Watch "validation on submit and not on other page actions?" New topic
Author

validation on submit and not on other page actions?

Ryan White
Greenhorn

Joined: Feb 20, 2008
Posts: 7
Is there a way to perform validation only on the submit action and not on other page actions? I have a button to add an item to a list in the form, but the page is performing validation on the whole form upon click of this button.

Because one of the page validation rules is that this list be populated with at least one item, it will not let me add any items to the list.
Ryan White
Greenhorn

Joined: Feb 20, 2008
Posts: 7
Nevermind, fixed the problem. I mistakenly had validate set to true on the action for adding that email to the list.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation on submit and not on other page actions?
 
It's not a secret anymore!