- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我查阅了几个权威资料,但要么他们真的相互矛盾,要么我误解了他们,或者可能有不止一个转换发生? JSF 的 1.x 和 2.x 版本之间有区别吗?
这IBM post表示转换发生在应用请求值阶段(第 2 阶段)。
这post by BalusC说here默认转换发生在流程验证阶段(第 3 阶段)。
Oracle JEE6 tutorial暗示转换发生在更新模型值阶段(阶段 4),在该阶段的描述中说:
If the local data cannot be converted to the types specified by the bean properties..
另一方面,说明同一教程中各个阶段的图形显示了流程验证阶段和更新模型值阶段出现的转换错误。
以上所有帖子都指出,如果 immediate
属性设置为 true,则所有转换和验证都在 Apply 请求阶段 中处理。这意味着该阶段的转化不是默认行为。
谢谢
最佳答案
来自 UIInput's documentation [强调我的]:
During the Apply Request Values phase of the request processing lifecycle, the decoded value of this component, usually but not necessarily a String, must be stored - but not yet converted - using setSubmittedValue(). If the component wishes to indicate that no particular value was submitted, it can either do nothing, or set the submitted value to null.
By default, during the Process Validators phase of the request processing lifecycle, the submitted value will be converted to a typesafe object, and, if validation succeeds, stored as a local value using setValue(). However, if the immediate property is set to true, this processing will occur instead at the end of the Apply Request Values phase.
During the Render Response phase of the request processing lifecycle, conversion for output occurs as for UIOutput.There are no differences between JSF 1.x and 2.x versions.
关于java - JSF 中的值转换究竟发生在什么时候?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12836955/
Feel free to skip straight to TL/DR if you're not interested in details of the question 简短的序言: 我最近决定
我一直在阅读 A Tour of Go学习Go-Lang到目前为止一切顺利。 我目前在 Struct Fields类(class),这是右侧的示例代码: package main import "fm
Last time I got confused顺便说一下PowerShell急切地展开集合,基思总结了它的启发式如下: Putting the results (an array) within a
我是一名优秀的程序员,十分优秀!