Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

custom javascript validation to date field

susanlinNov 4 2015 — edited Nov 4 2015

I have an inputDate field. If I try to submit the page and the field is not in the date format ADF will give an error message that the date is not in the correct format right beside the input field. When I try to navigate away the error message keeps popping up and won't let me navigate away. This form is inside of a jsff page which is inside of a main jsf page (which contains the main navigation buttons) which I do not have access to modify. I need to be able to allow the user to navigate away from the page whenever they please. I read this can possibly be done with setting the navigate buttons immediate attribute to true, but this page can't be modified. So I was thinking to be able to create this inline validation for the field using javascript (must be inline with the field, can't be a popup in the middle of the page, it must clearly indicate which field is wrong). I am not sure where to start though.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2015
Added on Nov 4 2015
1 comment
323 views