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!

Cancel 'action' in button after JavaScript validation

1044464Nov 18 2013 — edited Nov 18 2013

Hi. I'm using JDev/ADF 12c.

I'm using JavaScript for validate some ADF components when I click a af:button. That button has in 'action' property a call to other page.

I need that that 'action' executes only if validation it's good. If, per example, a inputText is empty, I need that the button don't go to other page (don't execute 'action').

If validation says that there's some wrong data, I need that user stays in the same page (even if I click that button that 'in theory' addressed me to other page).

How can I do that? How can I 'cancel' the 'action' of the button?

Sorry for my english. Thank you.

This post has been answered by Frank Nimphius-Oracle on Nov 18 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2013
Added on Nov 18 2013
1 comment
289 views