我有一个自定义 XHTML 标记重新定义ice:inputText
. 我需要将转换器属性映射到其中。
在 inputText 内添加converter="#{converter}"
到标签似乎没有正确的效果。
当我使用标签指定时converter="XMLGregorianCalendarConverter"
,我收到以下错误:
Problem in renderResponse: Cannot convert XMLGregorianCalendarConverter of type class java.lang.String to interface javax.faces.convert.Converter
上述转换器在我的全局 faces-config.xml 中正确定义。
什么可能导致这个问题?
谢谢你。