Writing out HTML programatically

[nobr]I'm a newbie. I have a method that creates some nested JSF components programatically (in a Java class file). I need to insert a couple basic html tags such as"<div class="horizontalRule"></div>"

used to display a horizontal line, or to add a couple of <br/>

tags. Is there a way to do this outside of writing my own component. If the custom component is the only way, where can I find a simple example of how to do this?

Thanks,

Ray[/nobr]

[539 byte] By [rvaneperena] at [2007-11-27 11:08:44]
# 1

Use h:outputText with escape="false", then it won't escape HTML entities.

BalusCa at 2007-7-29 13:30:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks, that did it. I was setting escape to true - what was I thinking :)

rvaneperena at 2007-7-29 13:30:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...