0 Replies Latest reply on Mar 21, 2007 4:56 PM by dustismo

    Extending aj4jsf component

    dustismo

      Hi,

      I am trying to extend the outputPanel of ajax4jsf. So I have a simple class (just for testing sake):

      public class UIAjaxIFOutputPanel extends HtmlOutputLabel {
       @Override
       public void setId(String id)
       System.out.println("SETTING ID: " + id);
       super.setId(id);
       }
      }
      


      and in my *.taglib.xml:

      <tag-name>outputPanel</tag-name>
       <component>
      <component-type>net.infofilter.IFOutputPanel</component-type>
       <renderer-type>
       org.ajax4jsf.components.AjaxOutputPanelRenderer
       </renderer-type>
       </component>
       </tag>
      


      And in faces-config.xml

      <component>
       <component-type>net.infofilter.IFOutputPanel</component-type> <component-class>net.infofilter.component.UIAjaxIFOutputPanel</component-class>
       </component>
      


      When I put the tag onto a page i get:
      13:53:19,783 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: javax.faces.Output/org.ajax4jsf.components.AjaxOutputPanelRenderer
      13:53:19,783 INFO [[/Infofilter3-Site]] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /home.xhtml][Class: net.infofilter.component.UIAjaxIFOutputPanel,Id: _id69]} (component-family=javax.faces.Output, renderer-type=org.ajax4jsf.components.AjaxOutputPanelRenderer)
      13:53:19,783 WARN [UIComponentBase] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /home.xhtml][Class: net.infofilter.component.UIAjaxIFOutputPanel,Id: _id69]} (component-family=javax.faces.Output, renderer-type=org.ajax4jsf.components.AjaxOutputPanelRenderer)
      13:53:19,784 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: javax.faces.Output/org.ajax4jsf.components.AjaxOutputPanelRenderer
      13:53:19,784 INFO [[/Infofilter3-Site]] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /home.xhtml][Class: net.infofilter.component.UIAjaxIFOutputPanel,Id: _id69]} (component-family=javax.faces.Output, renderer-type=org.ajax4jsf.components.AjaxOutputPanelRenderer)
      13:53:19,784 WARN [UIComponentBase] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /home.xhtml][Class: net.infofilter.component.UIAjaxIFOutputPanel,Id: _id69]} (component-family=javax.faces.Output, renderer-type=org.ajax4jsf.components.AjaxOutputPanelRenderer)
      13:53:19,784 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: javax.faces.Output/org.ajax4jsf.components.AjaxOutputPanelRenderer
      13:53:19,784 INFO [[/Infofilter3-Site]] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /home.xhtml][Class: net.infofilter.component.UIAjaxIFOutputPanel,Id: _id69]} (component-family=javax.faces.Output, renderer-type=org.ajax4jsf.components.AjaxOutputPanelRenderer)
      13:53:19,784 WARN [UIComponentBase] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /home.xhtml][Class: net.infofilter.component.UIAjaxIFOutputPanel,Id: _id69]} (component-family=javax.faces.Output, renderer-type=org.ajax4jsf.components.AjaxOutputPanelRenderer)
      


      I suspect this is a classloading problem, no? If so, what do I need to do to make this work? The project was generated using the latest seam-gen from cvs (includes richfaces and ajax4jsf support)

      thanks for any help,
      Dustin