@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited @Documented public @interface URLBeanName
Annotation specifying the name that can be used to access instances of this bean in EL expressions.
Please not that PrettyFaces is able to auto-detect the name in most environments. You will only need to place this annotation on your beans, if you use an uncommon way for declaring your beans or are running in a special class loading environment that prevents reflection.
If your way of declaring beans is not directly supported by PrettyFaces, you
can also create your own bean name resolver. This way you won't need to place
the URLBeanName annotation on your beans and instead let the resolver
determine the bean name. To create your own resolver, you will have to:
BeanNameResolver interface.META-INF/services/com.ocpsoft.pretty.faces.el.BeanNameResolver
and put the fully-qualified class name of your implementation class in there.
public abstract String value
The name of the bean in the EL context.
Copyright © 2014 OCPsoft. All Rights Reserved.