如何跳过JSF应用程序中的阶段? [英] How to skip the phase in JSF application?
问题描述
HI
我正在寻找一种可以跳过生命周期中某些阶段的方案.我已经看到了跳过这些的代码.但是,我对在哪里可以真正写出这种逻辑感到严重怀疑.
I am looking for a scenario where I can skip some of the phases in the life cycle. I have seen code for skipping those. But, I have serious doubt about where actually I can write that logic.
是在ManagedBean或PhaseListener中吗?
Is it in the ManagedBean or PhaseListener?
寻找答案.
推荐答案
将 immediate = true
添加到动作组件.您不能做更多的事情.
Adding immediate=true
to your action component "skips" a phase. You can't do more than that.
许多开发人员给人的印象是,在组件上使用立即标记会跳过过程验证"阶段.没有.使用即时执行的操作是导致在应用请求值"阶段中处理组件.
Many developers are under the impression that using the immediate flag on a component skips the "Process Validations" phase. It doesn't. What using immediate does is cause a component to be processed in the Apply Request Values phase.
这篇关于如何跳过JSF应用程序中的阶段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!