扩展Richfaces组件 - 例如为特定实现自定义Datatable组件 [英] Extend Richfaces components - for example customize Datatable component for specific implementation

查看:122
本文介绍了扩展Richfaces组件 - 例如为特定实现自定义Datatable组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用自定义标题和排序技术扩展Richfaces组件的功能,例如Data表。我看到扩展的数据表,但没有得到太多的信息。请指出一个例子,如果它是可用的。



谢谢



Soma

解决方案

嗯,你可以使用普通的java扩展( extends )扩展一个JSF组件。您将不得不扩展一些类,具体取决于具体的组成部分:




  • UIComponentName / HtmlComponentName

  • HtmlComponentNameRenderer

  • ComponentNameTag



,您可能需要在 faces-config.xml



你可以看一下这个线程,或者google为Extend JSF组件或创建自定义JSF组件。 p>

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".

这篇关于扩展Richfaces组件 - 例如为特定实现自定义Datatable组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆