JSF 2 - How can I add an Ajax listener method to composite component interface?

前端 未结 2 989
借酒劲吻你
借酒劲吻你 2020-12-08 08:20

I have a JSF 2 composite component that employs some Ajax behavior. I want to add a listener method to the tag inside my composite c

2条回答
  •  有刺的猬
    2020-12-08 08:30

    Here is an example on how to use the interface to set an attribute and reference it within the implementation. You must define the method-signature of the method that will be called. This informs the composite component handler that there is a method value, rather than a value expression, contained in the #{cc.attrs.ajaxEventListener} expression.

    
        
    
    
    
        .
        .
        .
        
    
    

提交回复
热议问题