开发者

what is the default scope in JSF 1.1?

<managed-bean>
  <managed-bean-name>beanN开发者_如何学Pythoname</managed-bean-name>
  <managed-bean-class>BeanClasss</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
</managed-bean>

Is it mandatory to specify the scope of a manage bean in JSF 1.1. If it it is not mandatory, then what is the default scope?


The <managed-bean-scope> entry is mandatory for the faces-config.xml to be parsed correctly. Omitting it would result in a XML parsing error. However, next to request, session and application JSF also supports a scope of none.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜