A library to make life of JSF developers a bit easier. Ever wondered whats in the component tree or why a component doesn't show up? JSFInspector helps to investigate the issue. JSFInspector is used during development time. It comes as handy JAR file, no special IDE or plugin required.
Get started!<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:inspect="http://thomas-asel.de/jsfinspector"> ... <inspect:tree /> <inspect:lifecycle /> ... </html>
Add these coordinates to your POM:
<dependency> <groupId>de.thomasasel</groupId> <artifactId>jsfinspector</artifactId> <version>0.8.2</version> </dependency>
As a non-Maven user you may simply want to download the JAR using this link.
Add the namespace to your facelet and and add any of the components anywhere ony our page as shown above.
JSFInspector is only displayed if JSF is running in
develoment mode.
This is what JSFInspector looks like in a typical scenario:
JSFInspector comes with a bundled version of jQuery. Chances are good that your project also uses jQuery so you may want JSFInspector to suppress its bundled version. You can suppress the bundled version of jQuery and also the CSS file defining the styles for JSFInspector by simply adding these context params to web.xml:
<context-param> <param-name>de.thomasasel.jsfinspector.SUPPRESS_JQUERY</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>de.thomasasel.jsfinspector.SUPPRESS_CSS</param-name> <param-value>true</param-value> </context-param>