How to set colspan and rowspan in JSF panelGrid?

前端 未结 6 1145
粉色の甜心
粉色の甜心 2020-12-08 12:54

How can I set colspan and rowspan in JSF ?

6条回答
  •  生来不讨喜
    2020-12-08 13:56

    None of both is possible with the standard JSF implementation. There are 3 ways to fix this:

    1. Write plain HTML yourself. A basically renders a HTML . Do the same.
    2. Create a custom HTML renderer which supports this. It'll however be a lot of sweat and pain.
    3. Use a 3rd party component library which supports this.
      • Tomahawk has a component which supports colspan in .
      • RichFaces (3.x only) has a component which supports both colspan and rowspan in .
      • PrimeFaces has a next to which is supported in both and (also with ).
    4. 提交回复
      热议问题