Reusing Fragments Across Pages in Visual Builder by Shay Shmeltzer

image

Fragments are a key new capability in Oracle Visual Builder that adds a new level of modularity, reusability, and manageability to your application development experience. A fragment is a section of the user interface that can be developed as a stand-alone artifact, and will be included in multiple other pages in the application. Fragments can accept parameters which can influence their behavior. In addition, Fragments can raise events to the containing pages and pass information in these events.

To use fragments your application needs to use the new Visual Builder 22.01 runtime version (check your application settings and update the application if needed).

Example

First, here is a quick example of how to develop and use fragments. In this case we are developing a reusable fragments that list our employees and allow us to select one. We then embed this fragments in two pages. In one of them we just show the list and in the other we enable selection and react to the selection event in the containing page. Check it out:

Developing Fragments

You’ll see the fragments section appearing in your web applications navigator at the same level as flows in your application. A Fragment that you create is defined at the application level and as such is reusable inside any page in any flow in the specific application. Just like a page, a Fragments can define variables, actions, and events as well as mapping to data sources. Fragments are included in other pages using a new UI component called Fragment Container – oj-vb-fragment – that you can drag and add to your page. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.