This content has been marked as final.
Show 3 replies
-
1. Re: Richfaces Tree and Dinamic Gereration
grdzeli_kaci Jul 4, 2007 6:42 AM (in response to grdzeli_kaci)This is full post.
-
2. Re: Richfaces Tree and Dinamic Gereration
gemel Jul 6, 2007 4:11 AM (in response to grdzeli_kaci)tree looks like : com.liliko.billing.businesslayer.beans.common.Artist@184a8e6 com.liliko.billing.businesslayer.beans.common.Artist@620af1 com.liliko.billing.businesslayer.beans.common.Artist@14be76b com.liliko.billing.businesslayer.beans.common.Artist@e5449e
If you have a static tree, you will define the treenodes something like this:<rich:treeNode id="adminOtauNode" name="adminOtauNode" value="item" type="OTAU"> <h:outputText value="#{item.resource.name}" /> </rich:treeNode>
-
3. Re: Richfaces Tree and Dinamic Gereration
gemel Jul 6, 2007 4:22 AM (in response to grdzeli_kaci)Psst: Sorry i submitted an uncomplete post just before...
The way to put <h:outputText value="#{item.resource.name}" /> inside the <rich:treeNode></rich:treeNode> defines how the node will be displayed
In your code, i could see HtmlOutputText artistText = new HtmlOutputText();
But i didn't see the connection beewen your artistNode and this HtmlOutputText. So the HtmlOutputText doesn't relate to the node. That's why your tree displays the toString() of your node objectHtmlTreeNode artistNode = new HtmlTreeNode(); artistNode.setType("artist"); HtmlOutputText artistText = new HtmlOutputText(); artistText.setValue(artist.getName());