Spring My class@组件未使用我的模型更新

Spring My class@组件未使用我的模型更新,spring,primefaces,spring-webflow,Spring,Primefaces,Spring Webflow,我有一个带有“@Component”的类markeup,还有一个modelView,视图中使用的model属性不是update in action,按钮处于活动状态 @组件 公共类MyBbean扩展了Basebean{ @自动连线的任何服务; 私有myModel模型; } 我的流程参考: 我的看法是: <!-- language: xml --> <p:inputText id="teste1" value="#{modelView.test}" required="

我有一个带有“@Component”的类markeup,还有一个modelView,视图中使用的model属性不是update in action,按钮处于活动状态

@组件
公共类MyBbean扩展了Basebean{
@自动连线的任何服务;
私有myModel模型;
}
我的流程参考:


我的看法是:

<!-- language: xml -->
<p:inputText id="teste1" value="#{modelView.test}"  required="true"/>  
<p:commandButton action="action" immediate="true" />


当我在模型中查找属性测试时,它是空的

我使用范围会话解决了这个问题

@Controller
@Scope("session")

尝试删除立即属性。它也跳过了验证和更新阶段。
@Controller
@Scope("session")