Basically I am simply trying to add a <br> (or something equivalent) to the "value" attribute of a <p:commandButton> like this:
<p:commandButton value="#{aBean.text}" /> <!-- #{aBean.text} returns for example "text1<br>text2" --> Sadly, there is no possibility to set escape="false". Trying to add a custom converter didn't work, either. I have, without success, also tried to do it like this:
<p:commandButton> <h:outputText escape="false" value="#{aBean.text}" /> </p:commandButton> In my opinion adding a simple line break should be easy enough, right? Does anyone have a solution for this?