Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle ADF Real World Developer's Guide

You're reading from   Oracle ADF Real World Developer's Guide Mastering essential tips and tricks for building next generation enterprise applications with Oracle ADF with this book and ebook.

Arrow left icon
Product type Paperback
Published in Oct 2012
Publisher Packt
ISBN-13 9781849684828
Length 590 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (20) Chapters Close

Oracle ADF Real World Developer's Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with Oracle ADF FREE CHAPTER 2. Introduction to ADF Business Components 3. Introducing Entity Object 4. Introducing View Object 5. Advanced Concepts on Entity Objects and View Objects 6. Introducing the Application Module 7. Binding Business Services with the User Interface 8. Building Data Bound Web User Interfaces 9. Controlling the Page Navigation 10. Taking a Closer Look at the Bounded Task Flow 11. More on Validations and Error Handling 12. Oracle ADF Best Practices Index

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:


  1. 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.

  2. 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime