JSF 2.0 Facelets nested templates inheritance

自古美人都是妖i 提交于 2019-12-20 07:44:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!