Define Global Format Masks

Many systems have a requirement to standardize various key presentation formats, such as dates or currency amounts. You would like a standard format mask to be easily changeable and available in one place so that a single change can affect the entire application.

Within ADF BC, we have seen how you can apply control hints to all usages of a particular entity object attribute. However, it would be better if the format mask were applied to every applicable field in the application, not just to those related to a single entity object.

If you examine one of the Salary fields in the TUHRA system, you will see something like the following definition:

<af:outputText value="#{bindings.Salary.inputValue}"> <f:convertNumber groupingUsed="false" ...

Get Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.