I am still learning Spring Roo so please bear with me. Here is what I have (generated by roo)
public String convert(Cluster cluster) {
return new StringBuilder().append(cluster.getName()).toString();
}
so what that produces is this.
<div id="_s_com_clusters_id" class="box">Cluster1,Cluster2,Cluster3,Cluster4,Cluster5,Cluster6</div>
Which displayed
Cluster1,Cluster2,Cluster3,Cluster4,Cluster5,Cluster6
to the webpage.
What I want to do is insert a new line instead of the "," i tried append("\n") and that added a space between each but that was it.
Edit:
I have also tried append("
") as well and the generated html is
<div id="_s_com_clusters_id" class="box">Cluster1<br/>,Cluster2<br/>,Cluster3<br/>,Cluster4<br/>,Cluster5<br/>,Cluster6<br/></div>
Which results in
Cluster1<br/>,Cluster2<br/>,Cluster3<br/>,Cluster4<br/>,Cluster5<br/>,Cluster6<br/>
being displayed on the webpage.