title: PrimeFaces 3.0 - How can I set a TreeNode icon programmatically from backing bean?
body: <p>I am trying to create a treeview using the PrimeFaces <code>&lt;p:tree&gt;</code> component. I copied the sample code from the PrimeFaces 3.0 Showcase and I have a simple treeview displaying very simple static content that is declared programmatically on the backing bean.</p>
  
  <p>One of the showcase examples shows how you can assign icons (the JQueryUI type) to a <code>&lt;p:treeNode&gt;</code> in the Facelet code. That's nice eye-candy for the showcase, but how can I assign the icon via the associated <code>TreeNode</code> in the backing bean code? I don't see any getter/setter/method listed in the Javadocs.</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p>I'm using the PrimeFaces 3.0-M2-SNAPSHOT.</p>