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!

Skip validation for required fields when navigating to other tabs

SarahInVancouverAug 20 2013 — edited Aug 21 2013

I have 2 tabs in my application. In the 2nd tab, I have 3 required fields and a command Save button. I have added my validation method to my managed bean, for example:

<af:inputText id="MyField" ..... validator="#myBean.validateField}" </af:inputText>

The validation works well.

The problem is, as these 3 fields are required fields in my 2nd tab, if I don't enter anything to these 3 fields and try to navigate to my 1st tab, I got ADF validation error, saying "You must enter a value".

I don't even click the Save button, why I get the validation error.

I tried to set SkipValidation="true" in my page definition file for my 2nd tab, it doesn't work.

Please advise and thanks.

This post has been answered by Sébastien on Aug 21 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2013
Added on Aug 20 2013
1 comment
292 views