Facelet debug Tag

This tag is useful in displaying the component tree and scoped variables. This information will be displayed in a popup window of browser when we press Ctrl+Shift+(a key). This key will be specified in hotkey attribute. For example, in the code below in "debugtemplate.xhtml", this has been specified "p". So when page comes to the user then if Ctrl+Shift+p is pressed, debug window is open which displays the component tree and scoped variables.


debug.xhtml :



xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">

Content above composition tag will not be rendered.


RoseIndia Facelet Tags Tutorial


Welcome to the Facelet world..........



Enter UserID :





Enter Password :









Content below composition tag will not be rendered.

debugtemplate.xhtml :



xmlns:ui="http://java.sun.com/jsf/facelets">

facelet example









Rendered Output : This is the page that is displayed to the user first. Now if we press Ctrl+Shift+p then debug window is opened that is shown in the second figure below :

debug window :

Html Source Code :





facelet example



RoseIndia Facelet Tags Tutorial


Welcome to the Facelet world..........


Enter UserID :



Enter Password :
name="is" value="" />





This tag contains only one attribute :

hotkey : This attribute is used to specify the key which is to be pressed with Ctrl+Shift to open a debug window. Its default value is "d". It doesn't take EL expression.

0 comments:

Post a Comment