我正在使用 Jdeveloper 11.1.2.0.0 我有一个 jsf 页面,其中有一个输入文本字段和一个命令按钮。命令按钮的工作就是提交。但是我在命令按钮上有两个 setPropertyListener,用于设置该 VO 的两个强制属性的值。那么哪个会先被解雇呢?操作或 setPropertyListener。
问问题
3931 次
2 回答
1
ActionListener fires before Action. SetProperty fires before ActionListener. Easy to test. Write a simple Java Backing Bean and print a value that is changed by the SetProperty Listener. Then Print in ActionListener and Action and see what the value is and the order of the print statements. This post may help. And this. And this.
于 2013-04-30T14:52:02.853 回答
0
调用顺序:SetPropertyListener,ActionListener,Action
于 2013-06-07T08:45:43.507 回答