[jboss-user] [JBoss Seam] - Extending aj4jsf component

dustismo do-not-reply at jboss.com
Wed Mar 21 16:56:25 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030376#4030376

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030376



More information about the jboss-user mailing list