<ui:debug/> tag not working in Facelets (JSF 2.0)

siva636 picture siva636 · Oct 29, 2010 · Viewed 17k times · Source

I am doing a project using JSF 2.0 and Facelets.

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.

(I tried with various hotkeys, still no success. eg: <ui:debug hotkey="a"/>)

Answer

BalusC picture BalusC · Oct 29, 2010

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" />

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'}" />

in combination with this in web.xml

<context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
</context-param>