JSF2.0 - Composite component with optional method expression

前端 未结 5 1905
没有蜡笔的小新
没有蜡笔的小新 2021-01-02 16:12

I\'m implementing a composite component and I found a issue which I didn\'t find a solution.

I specified its attributes that can or not be passed by the page author,

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 17:01

    Avoid puting methods inside composite. If tou need to do that, put the class that have the method inside composite, and use it like this:

    
       
    
    

    And the implementation:

    
       

    Worked for me! :D

提交回复
热议问题