ADF Libraries are Java archive files, from which ADF Components like Business Components, Data controls, taskflows etc can be reused. This data however only lists default names of components. This ariticle deals with cuztomizing metadata visibility in ADF Libraries through the use of resource bundles. Sample Application:
Customizing visibility and component names inside an ADF Library needs two things:
- A custom Meta-Inf file.
- A Resource bundle - a .properties file.
The following steps illustrate this feature:
- Create a Fusion Web Application and create ADFBC Components based on Dept and Emp tables in the model,
- Create a View controller with a bounded taskflow, with 2 view objects - Dept and Emp. Define control flow scope, and create page fragments out of them.
- Create an ADF Library deployment profile in the View Controller project.
- In the View Controller project create a .properties file - LibraryBundle.properties.
.name=Friendly jar name
.description=Friendly long description of the jar
.tooltip=This is the tooltip text to display on mouse hover
ADF_DataControl|model/AppModule.xml.name=Friendly BC DC name
5. Create a custom metainf file in your local system:
Specification-Title: WebCenter ServiceList TaskFlows
Specification-Vendor: Oracle Corp.
Implementation-Vendor: Oracle Corp.
6. Save this as Custommetainf.mf. Create a ADF Library deployment profile.
7. Add Custommetainf.mf in the Jar options while creating the deployment profile.
8. Deploy the jar, and create a file system connection to it. Open it in the resource palette.
Note that both the Jar names, and the Data control names are both displayed with customized names that were defined in the resource bundles.