h:outputText line break for long words within strings

后端 未结 5 1294
小蘑菇
小蘑菇 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条回答
  •  生来不讨喜
    2020-12-30 06:46

    Set CSS word-wrap property of the element in question to break-word.

    
    

    with

    .someClass {
        word-wrap: break-word;
    }
    

提交回复
热议问题