Is there an easier way to generate an HTML line break tag (<br/>) than:
- Posted by: Scott Moore
- Posted on: December 16 2004 19:39 EST
<h:outputText value="<br/>" escape="false"/>
- Just <br/> tag? by Vladimir Bezugliy on January 04 2005 10:12 EST
- Add line breaks to rich:message by Deepa Kharbanda on August 05 2010 13:26 EDT
Why you do not use simple old good html <br/> tag???
JSF step by step,
Hmm, for some reason I thought mixing JSF and HTML tags was not a good idea or didn't work. But I tried simply putting a <br/> where I wanted a break and it works fine.
I am having that problem -- but in an f:subview.
It appears I can't place a <br> tag in an <f:subview
anyone know anything about this?
I'm new to JSF if this is a stupid question..
myfaces: <t:htmlTag value="br" />
In subviews, mixing HTML and JSF tags can be troublesome. It seems like you have to put all plain HTML tags into tags or some other JSF tag.
Is there a way to add line breaks to a rich:message. Here is a sample:
This entry is invalid. Please try again. Enter up to 10 numeric characters. When fewer than 10 characters are entered, the field will be pre filled with zeroes.
Needs to look like the text below:
This entry is invalid. Please try again.
Enter up to 10 numeric characters. When fewer than 10 characters are entered, the field will be pre filled with zeroes.