I\'m writing a composite component, you have a special tag named:
Which inserts all the component\'s chi
The basic expression you're after is the following:
#{cc.childCount} or more elaborately:
#{component.getCompositeComponentParent(component).childCount}
E.g. the following composite component:
used on the following Facelet:
will print Children: 2.
Thus #{cc.childCount != 0} will tell you whether a composite component has children or not.