• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write a custom renderer for a panel grid in a custom component  RSS feed

 
Augustine Chelliah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I need to write a custom pomponent which extends a HTML panel grid. I have done that quite ok and the JSP displays the page without any errors. But the component is not rendered. I checked the logs and found "No renderer for component found". I see that I need to write a renderer class extending Renderer. I do not know how to write a renderer for a panel grid. The number of colums in panel grid is fixed as 2 and will have output text in all cells. Can any one help me in writing this renderer with say 5 rows of output text in the panelgrid ???
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One source that documents this process - although it's a bit dated (pre-JSF2) is Kito Mann's "JSF in Action" book. Essentially, you have to supply a set of connections between the component and its renderer(s) in order to specifiy which renderer is used for which component and rendering system - which in your case is HTML.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!