T:Tree with t:columns

Hi,I tried to use t:columns within a t:tree. But I get an error message, that it's not possible. But I need this feature, is there a work around for this?
[169 byte] By [CH.Sanixa] at [2007-11-27 7:02:13]
# 1
You indeed cannot put columns in a list/tree (read: you cannot nest <td> elements inside a <ul> or <li> element) Use t:dataTable instead (read: a <table> element).
BalusCa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Well you can, the code below is working:

<t:tree value="#{QualityMatrixBean.treeTableModel}" var="treeItem" expandRoot="true">

<t:treeColumn>

<t:outputText value="#{treeItem}"></t:outputText>

</t:treeColumn>

<t:column>

<t:outputText value="bla"></t:outputText>

</t:column>

</t:tree>

CH.Sanixa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
What's the generated HTML source? I am not familair with Tomahawk components however.
BalusCa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
If the code is working, what is the question?Have you looked at the following page and the examples it references? http://myfaces.apache.org/tomahawk/treeTable.html
RaymondDeCampoa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Yes I did take a look at it. In the example, I have static columns but I want to load the columns dynamically.@BalusCIt's rendered as a html table. But the t:columns tag works only with dataTable.
CH.Sanixa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
If you need to change the columns dynamically, then try using the rendered attribute of the treeColumn. Otherwise I imagine you will have to create the components in Java code.
RaymondDeCampoa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
We are talking about 150 columns, so there rendered attribute wouldn't be a good solution.Looks like in the to do create the whole stuff in java.
CH.Sanixa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
> It's rendered as a html table. But the t:columns tag> works only with dataTable.And you said that the given example was working?
BalusCa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 9
Yes, since I use there t:column and not t:columns. Unfortunately there is no binding attribut for t:tree. Only for t:tree2, which is working differently.
CH.Sanixa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 10
For those who are interested in a solution:There's a component from Trinidad <tr:treeTable> , which supports a binding. So should be possible to generate dynamic columns.Or the other way would be to create the tree by your own.
CH.Sanixa at 2007-7-12 18:53:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...