How to change head elements of a page when using ui:composition

前端 未结 1 824
暖寄归人
暖寄归人 2020-12-06 01:15

I want to ask a question that i have a master template like this




        
1条回答
  •  一生所求
    2020-12-06 01:55

    In the template client, everything outside is ignored. You need to change your template approach to provide an for the title in the master template, so that it can be defined by an in the template client.

    Master template:

    
    
    
        
            <ui:insert name="title">Login</ui:insert>
            
        
    
        
            

    Template client:

    
    
        City Setup
    
        
            
                ...
            
        
    
    

    See also:

    • How to include another XHTML in XHTML using JSF 2.0 Facelets?

    0 讨论(0)
提交回复
热议问题