JSF显示HTML评论 [英] JSF display HTML comment

查看:109
本文介绍了JSF显示HTML评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是JSF 2.0,并定义了属性 javax.faces.FACELETS_SKIP_COMMENTS 来跳过JSF代码中的注释,因为有很多其他代码,开发注释等。我需要将一些HTML注释打印到客户端的浏览器中,例如。为其他浏览器定义替代条件样式表。

请问有什么方法可以做到这一点?因为我所有的尝试都失败了。使用< ui:remove> >删除注释而不是上下文参数。


I am using JSF 2.0 and have defined property javax.faces.FACELETS_SKIP_COMMENTS to skip comments in JSF code because there is a lot of other code, deveploping comments etc. But I need to print some HTML comments into client's browser eg. for defining alternative conditioned stylesheet for other browsers.

Please is there any way how to do it? Because all my attempts failed.

解决方案

Use <ui:remove> to remove comments instead of the context parameter.

这篇关于JSF显示HTML评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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