-1

It is possible in spring application-context.xml file to define a JSF bean with scope="view" right now i am using this

 <bean id="equipTemplateBean" class="com.alu.ipprd.bsm.soa.portal.bean.sure.EquipmentTemplateBean" parent="mdfBaseBean" scope="session">
     <property name="templatesWorkOrder" ref="templatesWorkOrder" />
</bean> 

as you can check right now scope="session" but i have to use JSF scope="view"

Is this technically possible ?

Note:- I don't want to use JSF view scope property in managed bean . I have to use in application-context.xml file.

Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202

1 Answers1

0

Spring doesn't have a view scope. But since Spring allows to define any custom scope, you can implement it yourself. Have a look at the implementation of Michail Nikolaev.

dunni
  • 43,386
  • 10
  • 104
  • 99