问题
Is it posible to define templates that inherit from other templates in facelets?
Something like this
/GlobalTemplate.xhtml
/users/UsersTemplate.xhtml template="/GlobalTemplate.xhtml"
/users/viewUser.xhtml template="/users/UsersTemplate.xhtml"
Then viewUsers.xhtml will be called by browser
回答1:
Yes, it's definitely possible.
来源:https://stackoverflow.com/questions/5323937/jsf-2-0-facelets-nested-templates-inheritance