此内容没有您所选择的语言版本。
10.2.7. Named Beans and Alternative Beans
10.2.7.1. About Named Beans 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
A bean is named by using the
@Named
annotation. Naming a bean allows you to use it directly in Java Server Faces (JSF).
The
@Named
annotation takes an optional parameter, which is the bean name. If this parameter is omitted, the lower-cased bean name is used as the name.