List of

events

后端 未结 7 713
你的背包
你的背包 2020-12-01 02:45

I\'ve searched the Internet and I cannot find a list of events. Can anyone provide a complete list of events for the

7条回答
  •  遥遥无期
    2020-12-01 03:21

    Unfortunatelly, Ajax events are poorly documented and I haven't found any comprehensive list. For example, User Guide v. 3.5 lists itemChange event for p:autoComplete, but forgets to mention change event.

    If you want to find out which events are supported:

    1. Download and unpack primefaces source jar
    2. Find the JavaScript file, where your component is defined (for example, most form components such as SelectOneMenu are defined in forms.js)
    3. Search for this.cfg.behaviors references

    For example, this section is responsible for launching toggleSelect event in SelectCheckboxMenu component:

    fireToggleSelectEvent: function(checked) {
        if(this.cfg.behaviors) {
            var toggleSelectBehavior = this.cfg.behaviors['toggleSelect'];
    
            if(toggleSelectBehavior) {
                var ext = {
                    params: [{name: this.id + '_checked', value: checked}]
                }
            }
    
            toggleSelectBehavior.call(this, null, ext);
        }
    },
    

提交回复
热议问题