Faced with the same problem and faced with this message. After a trivial study, "multiple events in the same p: ajax" approach will not work. It is not supported, at least for the tested version of Primefaces 5.3. The following exception occurs:
javax.faces.view.facelets.TagException: <p:ajax> Event:firstEvent,secondEvent is not supported.
Source code from the class AbstractBehaviorHandler:
ClientBehaviorHolder holder = (ClientBehaviorHolder) parent;
String eventName = getEventName();
if (null == eventName) {
eventName = holder.getDefaultEventName();
if (null == eventName) {
throw new TagException(this.tag, "Event attribute could not be determined: " + eventName);
}
} else {
Collection<String> eventNames = holder.getEventNames();
if (!eventNames.contains(eventName)) {
throw new TagException(this.tag, "Event:" + eventName + " is not supported.");
}
}
olexd source
share