JSF2.0 - Composite component with optional method expression

前端 未结 5 1927
没有蜡笔的小新
没有蜡笔的小新 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:05

    Change the method signature return type to java.lang.Object and add "null" as the default value.

    
        
        
        
    
    
    
        

    Without method:

    
    

    With method:

    
    

提交回复
热议问题