oracle-adf - 如何每次在弹出窗口中更新当前日期?
问题描述
我有一个包含两列(由创建和更新)'与 EO,VO 的表。我在视图对象中使用表达式“adf.currentDateTime”插入了当前日期和时间。同样,我想在每次更改数据的同时捕获更新的日期和时间。
解决方案
您将 View Object 日期属性的默认值设置为“adf.currentDateTime”是正确的,因为它默认为触发 View 对象时的当前时间。
要“在每次更改数据的同时捕获更新的日期和时间”在您的 Jsf 中只需输入 inputDate 属性immediate="true"和autoSubmit="true"这样当用户在 UI 中更改日期时,它将更新值实时查看对象。
<af:inputDate value="#{row.bindings.Date.inputValue}" autoSubmit="true" immediate="true" id="id1">
<f:validator binding="#{row.bindings.CreationDate.validator}"/>
<af:convertDateTime pattern="#{bindings.VO.hints.Date.format}"/>
</af:inputDate>
推荐阅读
- reactjs - 从同一组件中的 match.params 设置状态
- java - 如何使用 spark 创建大文件的较小子集
- java - 开发时如何让maven和appengine做热重载
- angular - “ng build --prod”给出
“打字稿编译中缺少” - gherkin - 在 cucumber.js 中,禁用场景并将其报告为待处理,即使已实施步骤
- javascript - 性能计时 API 不一致
- node.js - 在使用 JWT 进行身份验证后,Nodejs 不呈现视图
- c - C、函数中的静态数组不好的做法?
- python - 将 for 循环转换为列表理解
- python - Heapq 模块实现