You say I'd have to make my custom component support converter configuration? I've added a child f:converter tag to issue:mycomp but it didn't work.
--- Em dom, 7/3/10, Jakob Korherr <jakob.korh...@gmail.com> escreveu: > De: Jakob Korherr <jakob.korh...@gmail.com> > Assunto: Re: Custom converter for custom component > Para: "MyFaces Discussion" <users@myfaces.apache.org> > Data: Domingo, 7 de Março de 2010, 12:13 > OK, good. > > You could provide your converter via the converter > attribute if the class > mapping does not work in your scenario! > > Regards, > Jakob > > 2010/3/7 Leandro de Oliveira <lehph...@yahoo.com.br> > > > I've added version="2.0" to facelet-taglib and now I > get an exception > > that's similar to mojarra's one. Here is the > stacktrace: > > > > Caused by: java.lang.IllegalArgumentException: > #dddddd > > at > sun.beans.editors.ColorEditor.setAsText(ColorEditor.java:72) > > at > org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:370) > > at > > > org.apache.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46) > > at > > > org.apache.myfaces.view.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:80) > > at > > > org.apache.myfaces.view.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:45) > > at > > > javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:68) > > at > > > javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:93) > > at > > > org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:201) > > at > > > javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:54) > > at > > > javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:59) > > at > > > org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:248) > > at > > > javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:54) > > at > > > javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51) > > at > > > org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57) > > at > > > javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51) > > at > > > org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:45) > > at > > > org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:103) > > at > > > org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:295) > > at > > > org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:88) > > at > > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201) > > > > It seems to be an issue with facelets. Do you have > ideas on how to use > > custom converters with custom components? > > > > Thank you > > > > --- Em dom, 7/3/10, Jakob Korherr <jakob.korh...@gmail.com> > escreveu: > > > > > De: Jakob Korherr <jakob.korh...@gmail.com> > > > Assunto: Re: Custom converter for custom > component > > > Para: "MyFaces Discussion" <users@myfaces.apache.org> > > > Data: Domingo, 7 de Março de 2010, 11:05 > > > Hi Leandro, > > > > > > Yes this is a known problem. The JSF > specification states > > > (or was stating) > > > that facelet-taglibs should only be recognized > and used if > > > they define a > > > version attribute which is set to "2.0" (so you > need > > > <facelet-taglib > > > version="2.0"> to make this work). > > > > > > After many discussions about that, a decision was > made to > > > get rid of this > > > (stupid) check. So this should be in place in the > next > > > (beta) release of > > > myfaces. > > > > > > If you want to try it out now, you could use one > of the > > > latest nightly > > > builds or simply add the version attribute in > your > > > facelet-taglib. > > > > > > Regards, > > > Jakob > > > > > > 2010/3/6 Leandro de Oliveira <lehph...@yahoo.com.br> > > > > > > > Hi, > > > > > > > > I've submitted this bug on mojarra bug > tracker: > > > > https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1445 > > > > > > > > Then, I've decided to try it on myfaces, so > I just > > > commented out jsf-api > > > > and jsf-impl and added myfaces-api and > myfaces-impl in > > > my pom.xml. > > > > > > > > The url working.jsf worked as expected in > both > > > implementations. But myfaces > > > > simply didn't resolve this line in > not-working.xhtml: > > > > > > > > <issue:mycomp color="#dddddd" /> > > > > > > > > Other tags (h:head, h:body) resolved > correctly. > > > > > > > > Is this a bug in myfaces too? > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Veja quais são os assuntos do momento no > Yahoo! > > > +Buscados > > > > http://br.maisbuscados.yahoo.com > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Veja quais são os assuntos do momento no Yahoo! > +Buscados > > http://br.maisbuscados.yahoo.com > > > ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com