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.
如果熟悉Swing事件模型,您就知道需要为复选框添加一个活动监听器,从而每当用户改变它时,监听器都可以执行某个动作。
If you are familiar with the Swing event model, you know that you need to add an action listener to the checkbox so that whenever the user changes it, the listener can perform some action.
应用推荐