JSF template: rendered page missing DOCTYPE

前端 未结 2 1407
逝去的感伤
逝去的感伤 2021-01-06 19:03

TL;DR: I can\'t get the DOCTYPE header to appear on my JSF pages.

I just inherited a JSF 1.2 project that\'s having some display issues under IE. I\

2条回答
  •  独厮守ぢ
    2021-01-06 19:27

    Remove from your master template, which is the headertemplate.xhtml. It doesn't belong there. The will strip all other content outside the tag.

    
    
        
            
        
        
            
        
    
    

    Note that the doctype (and xml) declaration is unnecessary in template definition files (the ones using ). Just remove them.

    See also:

    • How to include another XHTML in XHTML using JSF 2.0 Facelets?
    • Facelets 1.x docbook

提交回复
热议问题