In JSF2, how to know if composite component has children?

前端 未结 3 1102
名媛妹妹
名媛妹妹 2021-01-13 06:32

I\'m writing a composite component, you have a special tag named:


Which inserts all the component\'s chi

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 06:55

    At least on Mojarra this does not work. A composite component's children get inserted just fine but accessing #{cc.parent} or #{cc.children} does not work on 2.0.2, and #{cc.childCount} always returns 0 on 2.0.4, regardless of the number of children.

提交回复
热议问题