将逻辑放在一个动作方法中并不能保证该逻辑在视图呈现之前得到执行,因为页面视图并不总是在用户触发的事件之后。
Placing the logic inside an action method does not guarantee that it will be executed prior to rendering because a page view is not always preceded by a user-triggered event.
它更新状态或触发对一个状态机的动作的唯一方法是通过此句柄调用 SIP servlet 例程。
The only way it can update the status or trigger actions to a state machine is by calling the SIP servlet routines via the handle.
JSF最大的一个失败是没有在用户触发的动作或动作监听器方法以外的其他地方提供可靠的机会来为视图准备数据。
One of the biggest frustrations with JSF is that it provides no definitive moment during which to prepare data for the view, apart from within a user-triggered action or action-listener method.
应用推荐