What I have is <h:outputLabel value="#{userInfo.totalExp}" />
Below is what I want as output
Total - 10 Years 2 Months
U.A.E - 5 Years 0 Months
India - 5 Years 2 Months
For this in bean, I was passing data as
totalExp = "Total - 10 Years 2 Months<br />U.A.E - 5 Years 0 Months<br />India - 5 Years 2 Months"
However I see output as Total - 10 Years 2 Months<br />U.A.E - 5 Years 0 Months<br />India - 5 Years 2 Months
instead of above. This gives output U.A.E in same line instead of next line.
Any idea how to get the data in next line?
Edit 1
When I use \n
instead of <br />
, I still get data in one line as ``.
When I view source of page, I see it as below.
<label dir="LTR">
Total - 10 years & 7 months
Ok OK
Teset</label>
means enter is present... Does that mean label
is not allowing enter?