• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ???
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic