转换器必须在这里将请求字符串转换为所需的对象类型,然后返回这个对象,将它存储在相应的JSF组件中。
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.
多亏有了这个转换器,流得到了完全的处理,其内容也通过使用与HTTP交换相关的编码转换为字符串。
Thanks to it, the stream gets fully consumed and its content is transformed to a string, using the encoding relevant to the HTTP exchange.
这意味着转换器还要负责将对象数据转换回字符串表示形式。
This means the converter is also responsible for transforming the object data back in to a string representation.
应用推荐