Stop generation tables and fieldset tag in output of Check box / Radio button Group control

后端 未结 2 1203
别跟我提以往
别跟我提以往 2021-01-16 07:31

When using a checkbox group XPage generates fieldset and table tags around it. Is there a way to not generate that? For e.g. if my XPage s

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-16 08:13

    If you want to fundamentally change the structure of the HTML representation of a component, you can use the Extensibility API to create an alternate renderer. This allows you full control over what markup is sent to the browser for a specific component instance without changing how any other components are rendered. Register the renderer with the same component-family as the default renderer (javax.faces.SelectMany), but assign it a custom renderer-type; if you then assign that custom value to the rendererType property of a specific checkbox group, Domino will use your custom renderer class to emit the HTML instead of the default renderer class.

提交回复
热议问题