Hi guys, I've been on this list for a while, to see how things work in here. But now I have a question of my own and I hope someone can help me out.
I've been looking into Trinidad lately and wanted to know how to add a new component (like a real trinidad component), Matthias sent me to a link http://wiki.apache.org/myfaces/Facelets_and_JSF_1%2e1_maven-faces-plugin_Getting_started where a bit was explained, but now I am stuck. I wanted to add a simple div component to find out how things work. I started with adding a CoreDiv.xml to the builder project: /trinidad-builds/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/ It looks like this: <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:tr="http://myfaces.apache.org/trinidad" 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[This is a div!]]> </description> <component-type>org.apache.myfaces.trinidad.CoreDiv</component-type> <component-class>org.apache.myfaces.trinidad.component.core.output.CoreDiv</component-class> <property> <description> <![CDATA[Sexy background color of the div]]> </description> <property-name>bgColor</property-name> <property-class>java.lang.String</property-class> </property> <xi:include href="includes/CommonAttrs.xml" xpointer="/faces-config/component/*"/> <xi:include href="includes/CoreJSEvents.xml" xpointer="/faces-config/component/*"/> <component-extension> <mfp:component-supertype>org.apache.myfaces.trinidad.ComponentBase</mfp:component-supertype> <mfp:renderer-type>org.apache.myfaces.trinidad.Text</mfp:renderer-type> <mfp:tag-name>tr:div</mfp:tag-name> <mfp:tag-class>org.apache.myfaces.trinidadinternal.taglib.core.output.CoreDivTag</mfp:tag-class> <mfp:long-description><![CDATA[Blabla about the div]]> </mfp:long-description> <mfp:example> <mfp:source-code> <![CDATA[ <tr:div></tr:div> ]]> </mfp:source-code> </mfp:example> <mfp:author>Martijn</mfp:author> <mfp:component-metadata> <mfp:accepts-child-components>true</mfp:accepts-child-components> <mfp:favorite-property>id</mfp:favorite-property> <!-- <mfp:group>${md:getTranslatedString("PALETTE_OUTPUT")}</mfp:group> --> </mfp:component-metadata> <mfp:uix2-local-name>div</mfp:uix2-local-name> </component-extension> </component> </faces-config> I disabled the mfp:group, have no clue what it is about, something for an IDE? Other then that its not looking very strange as far as I could tell. After kicking of nearly any generate-sources thing of maven for the projects I saw it was added in a faces master file in the trinidad-build. But that was the last thing of the div I saw as being 'new'. It doesnt generate any java source files which I would expect (as the rest is generated). So.. what am I missing where? I have a lot of more questions i guess, but this one really makes me stuck. I really want a div to choose once I test it in a web project! ;)) Thanks! Martijn