扩展Richfaces组件 - 例如为特定实现自定义Datatable组件 [英] Extend Richfaces components - for example customize Datatable component for specific implementation
问题描述
如何使用自定义标题和排序技术扩展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屋!