我有一个使用@ManagedBean注解并定义如下的Bean
:
@ManagedBean
@SessionScoped
public class Bean implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
}</code>
</pre>
<p>现在,我有另一个定义如下的<code>Bean</code>:</p>
<pre><code>
public class FooBean extends Bean {
// properties, methods here ...
}
当我在JSF页面中尝试引用FooBean时,出现以下错误:
目标不可达,标识符“fooBean”解析为null
为什么JSF无法将FooBean
视为托管bean?