Wyświetlenie Stringa na stronie xhtml

0

W jaki sposób mając:

if (comparingList.size()<3)
{
			
return "tekst1" + "tekst2" + "tekst3 ";
			
}

wyświetlić ten tekst na stronie *.xhtml w poniższy sposób ?

tekst1 tekst2
tekst3

dodanie znacznika <code class="none"> - @furious programming

2

Dodajac w tekscie <br/>?;p

0

Na stronie ten string wygladac tak :

 
<h1 id="SecondMsg">#{gameBean.scoreDraw()}</h1>

Trzeba cos wykombinowac tu

 return "tekst1" + "tekst2" + "tekst3 ";

Próbowałem \n ale nic z tego

0

OK, no to napisze łopatologicznie. Zamień to:

return "tekst1" + "tekst2" + "tekst3 ";

Na to:

return "tekst1" + "tekst2<br/>" + "tekst3 ";

1 użytkowników online, w tym zalogowanych: 0, gości: 1