public void setFunction(Callbacks.SerializableFunction<MenuItem, String> function) {
        this.function = function;
    }
Creates a new menu item without value.
primefaces/src/main/java/org/primefaces/model/menu/DefaultMenuItem.java