Tuesday, September 12, 2017

How to add a Date Validation in ADF

When imputing dates for Purchasing and Expiry there need to be a validation. That is the Expiry date must be always grater than the Purchased date. Using the following code in the .jsff code you can have the date validation.

 <af:validateDateTimeRange minimum="#{bindings.PurchasedDate.inputValue}"  
 maximum="#{bindings.ExpiryDate.inputValue}"  
 messageDetailNotInRange="Enter your message here"/>