Overriding UI hints in a view object
The ADF framework allows you to override UI hints defined in a view object at runtime. This is done by overriding createViewRowAttrHints(AttributeDefImpl attrDef)
in oracle.jbo.server.ViewRowImpl
for the view object. The framework engages this method to retrieve control hints when a row is rendered on the UI.
There are two steps to supply custom row attribute hints for a view object:
Create a custom view row attribute hints implementation class extended from
oracle.jbo.server.ViewRowAttrHintsImpl
. This class will have the logic to return custom attribute hints.Generate a view row class, and override
createViewRowAttrHints(AttributeDefImpl attrDef)
in the class to return customized row attribute hints implementation.
The following example illustrates the usage of attribute hints in the view object to control the runtime display of UI elements. This example hides the ManagerId
attribute for normal business users. The term "normal user" in this example refers...