How to display a line break with outputText?

前端 未结 3 1920
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 20:35

I need to render a line break using outputText so that I can utilize the rendered attributed. I tried



        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 21:15

    JSF PAGE

    
    

    escape should be false and write the bean Getter method as follows

     public String getCrg() {
             return crg.replace("
    ", "<br />"); //return crg; }

提交回复
热议问题