开发者

Using a JSF converter in a custom tag

I have a custom XHTML tag redefining ice:inputText. I need to map the converter attribute into it.

Adding converter="#{converter}" to the tag, inside the inputText, seems not to have the right effect.

When I use the tag specifying converter="XMLGregorianCalendarConverter" I get the following error:

Problem in renderResponse: Cannot convert XMLGregorianCalendarConverter of type class java.lang.String to interface javax.faces.convert.Converter

The above con开发者_开发技巧verter is correectly defined in my global faces-config.xml.

What could be causing this problem?

Thank you.


It's a bug in facelets. See issue: http://java.net/jira/browse/FACELETS-273

I hit the same bug today...

using the exact name in my tag resolves it. (passing parameter doesn't work)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜