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处理这种对象类型。
The following table shows converter ids and the corresponding implementation classes used by JSF for a simple data conversion.
下表显示了JSF进行简单数据转换所使用的转换器id及其对应的实现类。
The following table shows converter ids and the corresponding implementation classes used by JSF for a simple data conversion.
下表显示了JSF进行简单数据转换所使用的转换器id及其对应的实现类。
应用推荐