Oracle Visual Builder: Applications That Outlive Their First Release · Module 9 · Fragments, components and reuse
Fragments: a piece of page you reuse
Lesson 92 of 176 · 3 min
What a fragment is, WHAT IT CAN AND CANNOT SEE, and HOW DATA GETS IN AND OUT OF IT. A fragment is a piece of page you define once and place in several pages — and the whole of its behaviour follows from what it can see, which is deliberately very little. IT CANNOT SEE THE PAGE THAT CONTAINS IT. Not its variables, not its state. That is the design rather than a limitation: a fragment that read its host's variables would work on the page it was written for and break silently on the second one, which is exactly what reuse is supposed to prevent. SO DATA GETS IN AS PARAMETERS, DECLARED BY THE FRAGMENT. It says what it needs, the page supplies it, and the contract is visible on both sides. Which is Module 3 Lesson 3's rule applied to a component: pass what identifies, and let the…
The full lesson is part of the course
The video, the complete written lesson and the module quiz are included in Oracle Visual Builder: Applications That Outlive Their First Release, with a certificate on completion and a fourteen-day refund window.
