On Fri, Oct 3, 2008 at 1:11 AM, Marek Jasovsky <[EMAIL PROTECTED]> wrote: > Hi, I have several questions to Trinidad but I did not want to start many > threads. > > 1. is it possible to dynamically add columns to treeTable? (e.g. when > reading from database, according to column count of current query)
Yes, you can use component binding on the treeTable component & programmatically add columns to the component in a bean. > > where do I find sources for classes like UIXTable, CoreTable, ... ? I only > saw xml files with these names, but in final compilation, these are classes > already. They are generated by the maven-faces-plugin based on meta data from the xml files in the trinidad-build project (xml files under the components directory). It more complex than this as the xml + the template is used. For example: trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/Column.xml trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java These files are merged by the plugin into create the final UIXColumn class. trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreColumn.xml This file says that CoreColumn extends UIXColumn and therefore this data is used to generate the final CoreColumn class. Most Core* classes do not have templates, I think most templates are used at the UIX* level. > what is actually purpose of those xml files? Provide metadata to the maven-faces-plugin to be able to create components, events, listeners and build the necessary facelets taglib.xml and the faces-config.xml files. > > thanks > > Marek

