jsf - 为什么updateActionListener在commandButton的actionListener之前执行?
问题描述
我在我的页面上使用命令按钮:
<h:commandButton value="Create" action="#{orderList.getCreateBatchOrderNav}" actionListener="#{orderList.createBatchOrder}" >
<t:updateActionListener property="#{orderForm.orderId}"
value="#{orderList.newCreatedBatchOrderId}" />
</h:commandButton>
问题是,那updateActionListener
是在 of 之前执行actionListener
的commandButton
。updateActionListener 使用的值orderList.newCreatedBatchOrderId
仅在orderList.createBatchOrder
执行时计算。
如何更改执行顺序?
解决方案
推荐阅读
- asp.net-core - 如何让 Wix Heat.exe 保留自定义文件 ID?
- ios - setVisibleMapRect 无法预测地与 edgePadding 一起工作
- node.js - 如何修复此错误“gyp ERR!堆栈错误:EACCES:权限被拒绝,mkdir'/home/mohamedessam/Desktop/NodeJs/node_modules/bcrypt/build'”
- java - .sh 文件中应提供哪些信息
- swift - 如何在 SwiftUI 中分配可选的 Binding 参数?
- java - 重置 sqlite 序列自动增量
- mysql - 如何使下面的这个正则表达式适用于 MySql?
- r - 置信区间符号细化
- apache-spark - 二等分 K-Means spark ml - 什么是除法规则?
- python - 如何创建一个与另一个形状相同的元组