开发者

what is the default scope in JSF 1.1?

开发者 https://www.devze.com 2023-03-11 09:51 出处:网络
<managed-bean> <managed-bean-name>beanN开发者_如何学Pythoname</managed-bean-name>
<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

精彩评论

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