Sean, thanks.  A heads up on the users forum would be appreciated.

James, no diff necessary, as I havn't changed anything written by the myfaces dev team.  Here's the basic idea,

     package org.apache.myfaces.custom.tree3;

    public class TreeTag extends org.apache.myfaces.custom.tree2.TreeTag {
        private static String COMPONENT_TYPE = "org.apache.myfaces.HtmlTree3";
        private static String RENDERER_TYPE = "org.apache.myfaces.HtmlTree3";

    public class HtmlTreeRenderer extends
                org.apache.myfaces.custom.tree2.HtmlTreeRenderer {


inside tld:
<tag-class>org.apache.myfaces.custom.tree3.TreeTag</tag-class>
( add an attribute for expandAllInit )

inside faces-config.xml:
  <component>
    <component-type>org.apache.myfaces.HtmlTree3</component-type>
    <component-class>org.apache.myfaces.custom.tree3.HtmlTree</component-class>
  </component>
 
  ... and

  <render-kit>
        <renderer>
          <component-family>org.apache.myfaces.HtmlTree2</component-family>
          <renderer-type>org.apache.myfaces.HtmlTree3</renderer-type>
          <renderer-class>org.apache.myfaces.custom.tree3.HtmlTreeRenderer</renderer-class>
       </renderer>
  </render-kit>

By the way, I believe the subject line that I picked for my post matched a thread that began back in march.  If you look at the archives, it appears as though we are having the conversation in the past.

Reply via email to