JET – create and register custom converter by Anirban Mukherjee

image

This article speaks on simplifying the process of creating and registering a custom converter in your Oracle JET application.
The entire job can be essentially broken down into 3 parts:
1. Creating the custom converter (including the logic for formatting the input data).
2. Registering the new converter with JET runtime, and finally,
3. Using the converter.
The converter which I am going to talk about is a Phone-Number-Converter. It takes in a string or a number input value, and changes the same into (###) ###-#### format. Just to keep it simple, it assumes that a phone number should always be of 10 digits.
The entire logic for the new converter is in an external file – PhoneNumberConverter.js. The converter’s format method takes care of the logic for the conversion. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.