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

自古美人都是妖i 提交于 2019-12-07 12:48:10

问题


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


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!