1 Reply Latest reply on Mar 14, 2008 10:55 AM by Mahesh Subedi

    Writing custom renderer for <rich:simpleTogglePanel>

    Milan Shrestha Newbie

      Hello everyone,
      I want to write a custom renderer for <rich:simpleTogglePanel> which does nothing but to let the children components to render themselves.

      I have written following renderer:

      public class D2ExcelSimpleTogglePanelRenderer extends Renderer{

      @Override
      public boolean getRendersChildren() {
      System.out.println("In the renderer !!!!!!!!");
      return false;
      }
      }

      And I have registered in the faces-config.xml as follows:

      <display-name>D2ExcelTogglePanelRenderer</display-name>
      <component-family>javax.faces.Command</component-family>
      <renderer-type>
      org.richfaces.SimpleTogglePanelRenderer
      </renderer-type>
      <renderer-class> com.d2.jsf.components.renderer.D2ExcelSimpleTogglePanelRenderer
      </renderer-class>


      But it is not working. I would be thankful if anyone could help me with the problem


      Regards
      Milan