Necesito hacer un salto de línea usando outputText
para poder utilizar el rendered
atribuido. Probé¿Cómo mostrar un salto de línea con outputText?
<h:outputText value="<br/>" escape="false" />
pero generó excepción
The value of attribute "value" associated with an element type "null" must not contain the '<' character.
¿cómo hacer esto al agregar dinámicamente un 'HtmlOutputText' en una ¿Bean administrado? Intenté 'HtmlOutputText linebreak = new HtmlOutputText(); lineBreak.setValue ("< br/>" y "
"); '(obviamente no al mismo tiempo) pero ninguno de los dos funcionó, simplemente imprimieron el texto ingresado, no un salto – Austin
@Austin: Aparentemente se olvidó de llamar' setEscape (falso) '. – BalusC
¿Seguro que no necesita ningún libro nuevo? =) – Austin