h:outputText line break for long words within strings

后端 未结 5 1325
小蘑菇
小蘑菇 2020-12-30 06:12

Is there a way to tell h:outputText of JSF (2.0) to insert a line break (or even better: A custom string like \"-\") into very long words within strings? My pro

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 06:33

    This can be accomplished by two steps

    1)Apply style as table-layout:fixed to the panelGrid

    E.g:

    2) Then apply style of word-wrap break-word to the as below.

    E.g:

    Hope this helps.

提交回复
热议问题