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!

How to add hyphen or convert input on fly for the entered number

Hitesh.PatelApr 9 2014 — edited Apr 9 2014

Hi ADF mate,

I am working on the ADF page where I need to mask/convert user input automatically.

Here is the requirement.

It's a text field and user can enter maximum 6 digits & only one hyphen. As soon as user enters 3 digits I need to add dash/hyphen automatically by the ADF.

For example: The whole number is 123456. After user enters 123 it should become 123- and then user may enter 456. Finally it should look like 123-456.

Is there any easy way to do this in Oracle ADF?

Awaiting your reply.

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2014
Added on Apr 9 2014
1 comment
233 views