Also the renderer type is not output by GenerateFaceletsTaglibsMojo.java as seen below
On 9/17/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: > Found the error. In my HtmlHelpIcon.xml I had > 'xmlns:cw="http://christws.com/"', but my tag namespace was > "http://christws.com/components". > > Now the problem is that the plug-in is generating invalid XML. There > is no <namespace> around the namespace in the taglib.xml: > > cat faces-impl/target/maven-faces-plugin/main/resources/META-INF/cw.taglib.xml > <?xml version="1.0" encoding="utf-8"?> > <!DOCTYPE facelet-taglib > PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" > "http://java.sun.com/dtd/facelet-taglib_1_0.dtd"> > <facelet-taglib xmlns="http://java.sun.com/JSF/Facelet"> > > http://christws.com/components > > <tag> > <tag-name>helpIcon</tag-name> > <component> > <component-type>com.christws.HelpIcon</component-type> > > <handler-class>com.christws.faces.component.BaseComponentHandler</handler-class> > </component> > </tag> > > > > > On 9/17/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: > > I downloaded SVN and installed it into my maven repo. I am still > > having the issue of the taglib.xml file not being populated. Obviously > > something is wrong with my configuration. There doesn't appear to be > > any logging in the plugin (GenerateFaceletsTaglibsMojo). Unfortunately > > I don't have the time tonight to be troubleshooting it too much. > > Anyone have any success in using this plug-in that can lend advice? > > > > Thanks, > > Andrew > > > > On 9/17/07, Adam Winer <[EMAIL PROTECTED]> wrote: > > > I just updated the version number to 1.2.3-SNAPSHOT an hour > > > ago or so, so I'm not surprised it isn't up there yet. But the > > > 1.0.3-SNAPSHOT is more than a month old, so I suspect our > > > continuum build is not deploying correctly. > > > > > > @Matthias, do you know what's going on? And do you know > > > how I can get an account on the new continuum server? > > > > > > -- Adam > > > > > > > > > On 9/17/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: > > > > BTW, is there a 1.2.3-SNAPSHOT of the plugin in Maven? It is not > > > > located at: > > > > > > > > http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/trinidadbuild/maven-faces-plugin/ > > > > > > > > > > > > On 9/17/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: > > > > > Decided to keep trying to get this to work, hate to quit! > > > > > > > > > > I added in the tag and added in the goal, and I am still getting no > > > > > TLD files or taglib.xml file content (cw.taglib.xml simply has what I > > > > > put in the cw-base.taglib.xml) > > > > > > > > > > To the HtmlHelpIcon.xml I added: > > > > > > > > > > <mfp:tag-class>com.christws.faces.component.help.HtmlHelpIconTag</mfp:tag-class> > > > > > > > > > > To the pom.xml in my faces-impl project I uncommented: > > > > > <goal>generate-jsp-taglibs</goal> > > > > > > > > > > The HtmlHelpIconTag.java was created, but the TLD file was not created > > > > > and as mentioned, the cw.taglib.xml doesn't contain any information on > > > > > the HtmlHelpIcon component. Any ideas to what I am missing that needs > > > > > to be done to generate the taglib.xml? > > > > > > > > > > BTW - here is my project structure: > > > > > > > > > > faces-shared (code I use in the generated components, the renderers as > > > > > well as my business classes in the web project) > > > > > > > > > > faces-generated-config (the XML files for the maven-faces-plugin, has > > > > > the generate-master-faces-config goal. References the shared project) > > > > > > > > > > faces-generated (contains the java-templates and the > > > > > maven-faces-plugin generate-components goal, references the above > > > > > projects) > > > > > > > > > > faces-impl (has the goals: generate-faces-config, > > > > > generate-jsp-taglibs, enerate-facelets-taglibs, generate-renderer-map. > > > > > Depends on the above projects) > > > > > > > > > > web (my war-project, has my EJB3 classes, backing beans, XHTML files, > > > > > etc. No maven-faces-plugin here. References the other projects as > > > > > dependencies). > > > > > > > > > > Important files: > > > > > > > > > > faces-generated-config/src/main/resources/META-INF/maven-faces-plugin/components/HtmlHelpIcon.xml > > > > > faces-generated/src/main/java-templates/com/christws/faces/component/help/ > > > > > HtmlHelpIconTemplate.java > > > > > faces-impl/src/main/conf/META-INF/cw-base.taglib.xml > > > > > faces-impl/src/main/conf/META-INF/faces-config-base.xml > > > > > > > > > > Any ideas? > > > > > -Andrew > > > > > > > > > > On 9/17/07, Adam Winer <[EMAIL PROTECTED]> wrote: > > > > > > Ech. You shouldn't need a tag-class, as those are for JSP. > > > > > > But the Facelets generator re-uses the same > > > > > > "ComponentTagLibraryFilter" > > > > > > inner class of AbstractFacesMojo that the JSP generator uses, so > > > > > > it's checking that there is a tag-class. And therefore > > > > > > (incorrectly) > > > > > > skipping over your metadata that (correctly) doesn't have a > > > > > > tag-class. > > > > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > On 9/17/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: > > > > > > > I tried that, but it didn't do anything. Tag classes are for JSP > > > > > > > aren't they anyway? > > > > > > > > > > > > > > On 9/17/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > > > > > > > > Andrew- > > > > > > > > > > > > > > > > looks like in <component-extension/> you're no specifying the > > > > > > > > tag-class > > > > > > > > <mfp:tag-class>com.....BlahTag</mfp:tag-class> > > > > > > > > > > > > > > > > -Matthias > > > > > > > > > > > > > > > > On 9/16/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: > > > > > > > > > I have the faces-config.xml generating, but the taglib.xml > > > > > > > > > file is empty. > > > > > > > > > > > > > > > > > > What are the required properties to get a component included > > > > > > > > > in the taglib.xml? > > > > > > > > > > > > > > > > > > cw-base.taglib.xml: > > > > > > > > > ... DOCTYPE .. > > > > > > > > > <facelet-taglib> > > > > > > > > > <namespace>http://christws.com/components</namespace> > > > > > > > > > </facelet-taglib> > > > > > > > > > > > > > > > > > > HtmlHelpIcon.xml: > > > > > > > > > > > > > > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > > > > > > <faces-config version="1.2" > > > > > > > > > xmlns="http://java.sun.com/xml/ns/javaee" > > > > > > > > > xmlns:cw="http://christws.com/" > > > > > > > > > xmlns:xi="http://www.w3.org/2001/XInclude" > > > > > > > > > xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin" > > > > > > > > > xmlns:xhtml="http://www.w3.org/1999/xhtml"> > > > > > > > > > <component> > > > > > > > > > <description> > > > > > > > > > <![CDATA[Help icon link]]> > > > > > > > > > </description> > > > > > > > > > <component-type>com.christws.HelpIcon</component-type> > > > > > > > > > > > > > > > > > > <component-class>com.christws.faces.component.help.HtmlHelpIcon</component-class> > > > > > > > > > ... properties ... > > > > > > > > > > > > > > > > > > <component-extension> > > > > > > > > > > > > > > > > > > <mfp:component-family>com.christws.HelpIcon</mfp:component-family> > > > > > > > > > <mfp:component-supertype> > > > > > > > > > org.apache.myfaces.trinidad.CoreCommandLink > > > > > > > > > </mfp:component-supertype> > > > > > > > > > <mfp:component-superclass> > > > > > > > > > > > > > > > > > > org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink > > > > > > > > > </mfp:component-superclass> > > > > > > > > > > > > > > > > > > <mfp:renderer-type>com.christws.HelpIcon</mfp:renderer-type> > > > > > > > > > <mfp:tag-name>cw:helpIcon</mfp:tag-name> > > > > > > > > > <mfp:component-metadata> > > > > > > > > > > > > > > > > > > <mfp:favorite-property>messageId</mfp:favorite-property> > > > > > > > > > </mfp:component-metadata> > > > > > > > > > </component-extension> > > > > > > > > > </component> > > > > > > > > > </faces-config> > > > > > > > > > > > > > > > > > > pom.xml: > > > > > > > > > ... > > > > > > > > > <plugin> > > > > > > > > > <groupId>org.apache.myfaces.trinidadbuild</groupId> > > > > > > > > > <artifactId>maven-faces-plugin</artifactId> > > > > > > > > > <configuration> > > > > > > > > > <taglibs> > > > > > > > > > <cw>http://christws.com/components</cw> > > > > > > > > > </taglibs> > > > > > > > > > > > > > > > > > > <faceletHandlerClass>com.christws.faces.component.BaseComponentHandler</faceletHandlerClass> > > > > > > > > > <typePrefix>com.christws</typePrefix> > > > > > > > > > <renderKitPrefix>com.christws</renderKitPrefix> > > > > > > > > > <packageContains>com.christws</packageContains> > > > > > > > > > <removeRenderers>true</removeRenderers> > > > > > > > > > <force>false</force> > > > > > > > > > </configuration> > > > > > > > > > <executions> > > > > > > > > > <execution> > > > > > > > > > <goals> > > > > > > > > > <goal>generate-faces-config</goal> > > > > > > > > > <!-->goal>generate-jsp-taglibs</goal--> > > > > > > > > > <goal>generate-facelets-taglibs</goal> > > > > > > > > > <goal>generate-renderer-map</goal> > > > > > > > > > </goals> > > > > > > > > > </execution> > > > > > > > > > </executions> > > > > > > > > > </plugin> > > > > > > > > > ... > > > > > > > > > > > > > > > > > > What am I missing? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Matthias Wessendorf > > > > > > > > > > > > > > > > further stuff: > > > > > > > > blog: http://matthiaswessendorf.wordpress.com/ > > > > > > > > mail: matzew-at-apache-dot-org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >