< UI:调试/>标签在Facelets中不起作用(JSF 2.0) [英] <ui:debug/> tag not working in Facelets (JSF 2.0)
问题描述
我正在使用JSF 2.0和Facelets做一个项目。
I am doing a project using JSF 2.0 and Facelets.
我已经阅读了< ui:debug /> <的文档/ code>标签在按CTRL-SHIFT-D时提供有价值的故障排除信息。但这对我不起作用。请有人告诉我我错过了什么。
I have read documentations that the <ui:debug/>
tag gives valuable troubleshooting information upon pressing CTRL-SHIFT-D. But this never works for me. Please anyone tell me what am I missing.
(我试过各种热键,但仍未成功。例如:< ui:debug hotkey = a/>
)
(I tried with various hotkeys, still no success. eg: <ui:debug hotkey="a"/>
)
推荐答案
确保选择未保留的密钥通过webbrowser本身。对于Firefox,一个不错的选择是 x
。
Ensure that you pick a key which isn't reserved by the webbrowser itself. In case of Firefox, a good choice is x
.
<ui:debug hotkey="x" />
参见:
- 如何调试JSF / EL
- how to debug JSF/EL
See also:
与此问题无关,我建议添加呈现
属性以确保它不会在生产环境中弹出。例如
Unrelated to the problem, I recommend to add a rendered
attribute to ensure that it won't pop in a production environment. E.g.
<ui:debug hotkey="x" rendered="#{facesContext.application.projectStage == 'Development'}" />
与此相结合 web.xml
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
这篇关于< UI:调试/>标签在Facelets中不起作用(JSF 2.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!