Hi! Not sure if this adds any value to this discussion, but
> > The only question is how facelets handles this case, but I assume > > faclets simply skips comments and passes it through with out.write! > I'm talking about <!-- on the page level, not on the component level. > Facelets will treat <!-- as markup. Tags nested inside will still be > evaluated. With the writeElement/writeAttribute solution this could end > up in script being evaluated though nested inside <!-- -->. You can configure this using "facelets.SKIP_COMMENTS=true" (what we did). Comments are comments then (and skipped) Hopefully mojarra will provide a setting for this too, and, even better, have true as default. Ciao, Mario