Hey Frank,
Sorry for me beeing not attentive.
The code is comitted and should work.
But for the nice node icons (folder/document/...) to work,
you need to have in your tree node class a getNodeType() method
that returns for each node it's type (String)
i.e. if for one node the method returns "folder"
then you will have the following selectors:
af|tree::node-icon:folder-collapsed (for a collapsed node - if it has
children)
af|tree::node-icon:folder-expanded (for an expanded node - if it has
children)
af|tree::node-icon:folder (for a node that doesn't have children)
this way you could skin each node different,
just by changing the value returned by getNodeType() method.
A good example you find in the trinidad-demo
the node class is DemoTreeData and the skin file is beach.css
Sorry for the late answer and hope to be of some help.
On Jan 23, 2008 7:45 PM, Frank Nimphius <[EMAIL PROTECTED]> wrote:
>
> I am trying to skin the trinidad tree so it looks like the ADF Faces
> tree. Looks good so far, but I am struggeling with the folder icon. I
> downloaded Trinidad 1.2.5 (the latest release). Looking at the
> treeRenderer and the SkinSelector class, it appears (as I understand the
> code) that the tree folder icon is composed as
>
>
> af|tree::node-icon:-collapsed{content:url('/skins/oracle/images/tfold.gif');}
>
>
> af|tree::node-icon:-expanded{content:url('/skins/oracle/images/tfold.gif');}
>
>
> This doesn't work and also looks strange. Can whoever built the
> treeRenderer have a look to verify if its me or the code?
>
> Frank
>
> --
>
> ________________________________
> Frank Nimphius
> Principal Product Manager
> Application Development Tools
> Oracle Corporation
> mail: [EMAIL PROTECTED]
> phone:+49 2058 782481
>
>
--
Cristi Toth
-------------
Codebeat
www.codebeat.ro