开发者

Using a JSF converter in a custom tag

开发者 https://www.devze.com 2023-03-14 03:29 出处:网络
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 effe

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

精彩评论

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

关注公众号