Page 1 of 1

How do I put line break in p:tooltip

Posted: 20 Feb 2019, 07:51
by Marissa20
How can I put a line break to the tooltip prime faces component to separate the first line from the second line?

Code: Select all

<p:tooltip id="toolTip" for="idButton" value="First line Second Line" position="top"/>

Re: How do I put line break in p:tooltip

Posted: 21 Aug 2019, 23:08
by barryallen1337
Why you're showing the message in an extra tooltip? Looks a bit strange.

Anyway, what you need is a <br/> where you want the line break and set escape="false" in your p:message.
message: shareit

Password should contain&#13;Minimum 8 characters&#13;1 <br/> Uppercase Password...
xhtml:

<p:message for="password1" escape="false"/>
https://get-vidmateapk.com