How to reference value declared in cc:attribute in cc:implementation

后端 未结 1 1683
说谎
说谎 2021-01-25 11:55

I have a simple JSF 2.0 composite component example.



        
1条回答
  •  粉色の甜心
    2021-01-25 12:15

    You need to reference composite component attribute values by #{cc.attrs.} where is the attribute name. So, this should do:

    
    

    See also:

    • Java EE 6 tutorial - Facelets - Composite Components
    • Java EE 6 tutorial - Advanced Composite Components
    • tag documentation

    Unrelated to the concrete problem, all that in the composite is unnecessary. I suggest to use since that's more clear. See also our composite component wiki page for examples.

    0 讨论(0)
提交回复
热议问题