You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Cristi Toth <cr...@gmail.com> on 2008/01/30 09:14:51 UTC

Re: Got It !!! Re: Tree skinning problem with Trinidad 1.2.5

I'm glad that I could be of some help.

-- 
Cristi Toth

-------------
Codebeat
www.codebeat.ro

On Jan 30, 2008 12:52 AM, Frank Nimphius <fr...@oracle.com> wrote:

>  Cristi,
>
> thanks for the pointer to the beach.css. I found a clue that got me going
> with
>
> af|tree::node-icon:folder
>
> Frank
>
> Cristi Toth wrote:
>
> As Matthias said, the changes were comitted in december.
> And as I said "a good example you find in the trinidad-demo
> the node class is DemoTreeData and the skin file is beach.css"
>
> Give more details about your problem so I can help you.
>
> regards,
>
> On Jan 29, 2008 9:33 AM, Frank Nimphius <fr...@oracle.com> wrote:
>
> Thanks Cristi,
>
> did you just check in the changes, or are they in 1.2.5 of Trinidad
> already ? I am asking because I was testing the skin with the Trinidad
> component demo
>
> Frank
>
> Cristi Toth wrote:
>
> 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 <fr...@oracle.com> 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: frank.nimphius@oracle.com
> phone:+49 2058 782481
>
>
>
>
> --
> Cristi Toth
>
> -------------
> Codebeat
> www.codebeat.ro
>
>
>  --
>
> ________________________________
> Frank Nimphius
> Principal Product Manager
> Application Development Tools
> Oracle Corporation
> mail: frank.nimphius@oracle.com
> phone:+49 2058 782481
>
>
>
>
> --
> Cristi Toth
>
> -------------
> Codebeat
> www.codebeat.ro
>
>
> --
>
> ________________________________
> Frank Nimphius
> Principal Product Manager
> Application Development Tools
> Oracle Corporation
> mail: frank.nimphius@oracle.com
> phone:+49 2058 782481
>
>