You can add a particular validation rule or can validate in trigger (before insert and before update) and add a <apex:pageMessages> tag in visualforce page. then errors will be displayed.
If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.
You can add a particular validation rule or can validate in trigger (before insert and before update) and add a <apex:pageMessages> tag in visualforce page. then errors will be displayed.
related posts:
http://boards.developerforce.com/t5/Visualforce-Development/Validation-rules-on-VisualForce-page/td-p/351113
http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_validation.htm
If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.