I have a backing bean Authority in the view scope and I have two pages viewRoles and editRole mapped to this backing bean.
In the viewRoles page there's a link to go to editRole page:
<h:form>
<h:commandLink value="#{au.displayName}" action="pretty:editRole">
<f:setPropertyActionListener target="#{authority.authorityId}" value="#{au.id}"/>
</h:commandLink>
</h:form>
It navigates to the other page, but the property is not getting set, even though the bean is in the view scope and the both pages are mapped to the same backing bean. It only works when I change the view scope to session scope.
Note: my beans are managed by Spring, also this view scope is not the JSF default @ViewScoped, it's a custom one which I found on http://cagataycivici.wordpress.com/2010/02/17/port-jsf-2-0s-viewscope-to-spring-3-0/. Also I am using PrettyFaces to manage my navigation.
The question is, is the above scenario supposed to work with a real JSF2 @ViewScoped @ManagedBean or is the problem related to Spring or another problem?
please advise.