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
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".
来源:https://stackoverflow.com/questions/2348178/extend-richfaces-components-for-example-customize-datatable-component-for-spec