JSF 2.0 Facelets嵌套模板继承 [英] JSF 2.0 Facelets nested templates inheritance

查看:123
本文介绍了JSF 2.0 Facelets嵌套模板继承的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以定义从facelets中的其他模板继承的模板?

Is it posible to define templates that inherit from other templates in facelets?

像这样的东西

/GlobalTemplate.xhtml

/users/UsersTemplate.xhtml template="/GlobalTemplate.xhtml"

/users/viewUser.xhtml template="/users/UsersTemplate.xhtml"

然后浏览器将调用viewUsers.xhtml

Then viewUsers.xhtml will be called by browser

推荐答案

是的,这绝对是可能的。

Yes, it's definitely possible.

这篇关于JSF 2.0 Facelets嵌套模板继承的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆