Skip to Main Content

New to Java

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!

Terminal Problem? Using a 'cancel' button and field input verifiers

843789Jul 15 2009 — edited Jul 16 2009
Hi Everyone,

Current situation:

I have an interface with next, previous and cancel buttons. The same interface incorporates several text fields that utilize input verifiers.

Problem

The problem I ran into is that, when positioned on a field that uses an input verifier, the verification code is execute before the listener code for the cancel button.

Effect

The user changes their mind about filling out the form so they click the 'cancel' button expecting a hasty exit. Unfortunately, rather than back out of the screen into the previous screen, they receive a warning dialog box telling them that the field they are positioned on is mandatory and requires the entry of a valid value.

The problem seems impossible to work around since the verification code is called prior to the cancel action code and there is no way to let the verification code to know the intentions of the user, which is to abort the field entry and simply exit the form.

Does anyone have any suggestions on a work around?

Best Regards,

Ricky
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2009
Added on Jul 15 2009
10 comments
185 views