Include new line character in value attribute of Liferay search container -


i have following line of code of search container. want include new line between 2 values want display..

<liferay-ui:search-container-column-text name='employee name'       value='<%=string.valueof(search.getempfname()) +  string.valueof(search.getemplname()) +"\n" + string.valueof(search.getemptitle()) %>'       href="" > 

the reason want way want these values in 1 box each row.

so how should format above code have:

 string.valueof(search.getempfname()) +  string.valueof(search.getemplname())  

on 1 line ,

  string.valueof(search.getemptitle()) 

on next line of same row.

converting comment answer:

you can try using <br> tag instead of "\n" this:

string.valueof(search.getemplname()) + "<br>" + string.valueof(search.getemptitle()` 

or can use <liferay-ui:search-container-column-jsp tag instead of <liferay-ui:search-container-column-text tag

or else use tag following:

<liferay-ui:search-container-column-text name='employee name' href="">    <%=string.valueof(search.getempfname()) + string.valueof(search.getemplname()) %>    <br>    <%= string.valueof(search.getemptitle()) %> </liferay-ui:search-container-column-text>*emphasized text**emphasized text* 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -