Fragments are a great solution in Oracle Visual Builder for creating reusable page areas that can be developed in a modular way. Whenever you recognize a section of your user interface that could be used in multiple locations in your application, you should consider developing it as a fragment. You can create and reuse fragment across your Oracle Fusion Cloud Application extensions too. Once you create a fragment you can mark it to be reusable across multiple extensions. Then once you publish/deploy it, other extensions that you and your team create can leverage those fragments.
Publishing Fragments
Start by creating a fragment in an application extension project. You use the same visual development approach and you can access the same set of REST based services as sources of data for your fragment. By default a fragment is only reusable inside that specific AppUI extension, if you want it to be reusable in other AppUI extensions there are two settings you need to do.
In the fragment setting tab check the checkbox for "Extensions can reference this fragment". You should also fill out the rest of the settings in this dialog to help other developers find and understand what your fragment does.
Then, for every REST service you defined and that the fragment depends on, you also need to check the check box for "Accessible to application extensions".
Now you can continue with the process of publishing your application extension and the included fragment.
Once the extension with the fragment is deployed on your Fusion Applications environment, new application extensions will be able to see the fragment in the dependencies tab.
To use a dependency, developers add it to their application extension.
From that point on, any fragment that was marked as exposable, will be available to add to their pages.
Here is a quick demo of the whole process of creating, publishing, and reusing a fragment.
