First page Back Continue Last page Graphics

Managed Properties: Examples


Notes:

Managed Properties: Examples

Expression Language can be used within adfc-config.xml to initiate the value of a managed property. The EL can reference any object that is in the scope, including previously defined managed beans.

The first example in the slide shows using a literal string for a label managed bean property. This example illustrates how to use a literal string, but in practice, labels would come from a resource bundle.

One reason to use a managed property in the adfc-config.xml file is when you want to have an expression always evaluated and ready for use. For example, you could use a managed property to evaluate #{bindings}, giving you handy access to the DCBindingContainer.