• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom renderer problem

 
Jorge Fiallega
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I am trying to create a component, a renderer and a tag for such a component.

I am having troubles connecting the renderer. In the getRendererType() method of the UIComponentTag if I return null everything works fine although ofcourse my renderer is not used. Now if I return the renderer type specified in <renderer-type> of the faces-config then I get a NullPointerException.
java.lang.NullPointerException at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:676)
at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:574)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:461)
at org.apache.jsp._test._jspService(_test.java:472)

Any ideas?

Thanks
 
Jorge Fiallega
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I found the problem. I need the method getFamily() in the component.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic