ajaxFunction.getOptions().setParameter(component.getClientId(facesContext), component.getClientId(facesContext));
ajaxFunction.setSource(new JSReference("event", "target"));
ajaxFunction.getOptions().setAjaxComponent(component.getClientId(facesContext));
function.addToBody(ajaxFunction);
AbstractDropTarget dropTarget = (AbstractDropTarget) component;
Set<String> acceptedTypes = CoreAjaxRendererUtils.asSimpleSet(dropTarget.getAcceptedTypes());
if (acceptedTypes != null) {
if (acceptedTypes.contains("@none")) {
acceptedTypes = NONE_SET;
} else if (acceptedTypes.contains("@all")) {