SomaSekhar
SomaSekhar

Reputation: 348

Extend Richfaces components - for example customize Datatable component for specific implementation

How to extend the functionality of Richfaces components for example Data table with custom header and sorting techniques. i have seen extended data table but did not get much information from it. Please point me to an example if at it is available.

Thanks

Soma

Upvotes: 3

Views: 4438

Answers (1)

Bozho
Bozho

Reputation: 597016

Well, you can extend a JSF component with the regular java extension (extends). You will have to extend a number of classes, depending on the exact component:

  • UIComponentName/HtmlComponentName
  • HtmlComponentNameRenderer
  • ComponentNameTag

and you might need to register the renderer in faces-config.xml.

You can take a look at this thread, or google for "Extend JSF component" or "Create custom JSF component".

Upvotes: 1

Related Questions