How to identify if <some:element>
is a tag handler or a component handler during the development process (e.g. in Eclipse)? As of "Mastering JavaServer Faces 2.2" (Anghel Leonard) p. 538, <ui:repeat>
is a component handler whereas <ui:include>
is a tag handler. But during development I don't see any difference but the ignorance of that existing difference may lead to serious application errors.
How to identify if <some:element> is a tag handler or a component handler?
61 Views Asked by Toru At
1
The quickest way is to try setting the
rendered
attribute tofalse
.If that works, i.e. the output suddenly disappears when refreshing the page in your favorite web browser, then it's an
UIComponent
. If that doesn't work, then it's aTagHandler
.This is because the
rendered
(andbinding
andid
) attributes are only defined in theUIComponent
superclass.