Discussions

Web tier: servlets, JSP, Web frameworks: JSF tag - easy way to do an HTML line break?

  1. JSF tag - easy way to do an HTML line break? (6 messages)

    Is there an easier way to generate an HTML line break tag (<br/>) than:

    <h:outputText value="<br/>" escape="false"/>

    ?

    Thanks,
    Scott

    Threaded Messages (6)

  2. Just <br/> tag?[ Go to top ]

    Why you do not use simple old good html <br/> tag???

    Vladimir Bezugliy,
    JSF step by step,
    http://jsf.iatp.org.ua
  3. Okay - thanks[ Go to top ]

    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.

    Thanks!
  4. f:subview[ Go to top ]

    Hi,

    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..

    Thanks
  5. html tags in subview[ Go to top ]

    myfaces: <t:htmlTag value="br" />
  6. HTML in subviews[ Go to top ]

    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.
  7. Add line breaks to rich:message[ Go to top ]

    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.