aspose file tools*
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
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?
 
Similar Threads
Conditional form validation
submit thru javascript
Calling Java Script function in CSS Styles
I want two buttons on a page, one for "search refine", one for "submit", how to do ?
success alert using javascript