James Clinton - 2006-12-19

Hi*

Currently not using jsf-spring, but jsf-resolver and therefore would like to know if jsf-spring would help me solve my problem?

Stack (JSF,Spring Web Flow, Spring Core)
----------------------------------------

JSP page has a sortable datatable.  The bean managing the table is stored in Springs AppCtx declared below:

<bean name="tagFindCommand" class="tag.TagFindCommand" singleton="false"/>

...because I am unable (afaik) to assign scope to the spring bean, on executing sort, the stateful bean is re-created each time resulting in a fresh list being created and sorted in its default direction.

If the bean is moved into its jsf managed env, its fine because I can assign it session scope.

    <managed-bean>
        <managed-bean-name>tagFindCommand</managed-bean-name>
        <managed-bean-class>tag.TagFindCommand</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
      <property-name>accountController</property-name>
      <value>#{accountController}</value>
    </managed-property>
    </managed-bean>

...however I'm using Spring WebFlow to slighy complicate things am I'm unsure if I can have the bean managed in JSF IoC container, switch back into a Spring WebFlow and access the tagFindCommand from whats know as flowScope.

If jsf-spring could help, I really lov to heard your thoughts...

Kind regards.