JSF2 composite components: are #{cc.childCount} and mutually exclusive?

后端 未结 3 2015
日久生厌
日久生厌 2021-01-18 02:44

I just dont get it: If I want my composite component to insert children, I use but #{cc.childCount}

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 03:28

    Put the children in a panelGroup with an id (eg children).

    Then

    #{component.findComponent('children').childCount}
    

    will give you the correct value. Good luck!

提交回复
热议问题