I am usin SelectOneMenu, in which the selectItems will load from database. The labele values are very large to fit in browser, So i wanted to split the label into multiple lines. Please let me know wether it is Possibe.
I have added a line break ('\n') in the label text. still it did not work
String description = "22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222";
StringBuilder sb = new StringBuilder();
String[] split = description.split("(?<=\\G.................................................)");
for(String s : split){
sb.append(s).append("\n");
}