i have never had a problem doing this
jsut make sure if you in a component that renders its children
to surround the div with f:verbatim
e.g.
<f:verbatim>
<div>
</div>
thats if yoru not using jsf 1.2