我有这样的代码:
if (comparingList.size()<3)
{
return "text1" + "text2" + "text3 ";
}
我想在*.xhtml
页上以这种样式显示此文本:
text1 text2
text3
我该怎么做呢?
很简单!你必须改变这个return "text1" + "text2" + "text3 ";
to this return "text1" + "text2<br/>" + "text3 ";