This is where the converter must convert the request string value into the desired object type, and then return the object for storage in the corresponding JSF component.
转换器必须在这里将请求字符串转换为所需的对象类型,然后返回这个对象,将它存储在相应的JSF组件中。
In addition to allowing you to convert date and time formats, JSF provides a special converter for dealing with Numbers such as percentages or currency.
除了可以转换日期和时间格式外,JSF还提供了处理像百分数或者货币数据这类值的特殊转换器。
We prefer the latter option because it allows us to simply associate a custom converter (with built-in validation logic) with a specific object type and have JSF handle that object type.
我们偏向后一种方法,因为 它让我们可以将自定义转换器(自带验证逻辑)与特定的对象类型相关联,并让 JSF 处理这种对象类型。
应用推荐