I've created a DefaultTreeNode with primefaces.It works alright but I'd like to have 2 lines on each node instead of one.Is it possible to do that. Here's what I've tried so far :
TreeNode node0 = new DefaultTreeNode("Node 0" +"\n" +" 2nd line", root);
and
TreeNode node0 = new DefaultTreeNode("Node 0" +"\r\n" +" 2nd line", root);
but none of them work.
Any idea ?
`? Wouldn't that be escaped when the node is rendered? – Jasper de Vries May 04 '18 at 14:37