3

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

谢谢

相马

4

1 回答 1

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

于 2010-02-27T19:24:32.427 回答