What is RemoteCommand You can find a usage for PrimeFaces RemoteCommand on client side here . RemoteCommand is an implementation of UICommand in PrimeFaces library. With RemoteCommand you can call a bean method as an ajax call from a client side component callback, for example onChange, onHide, onClick etc. And in the following it is shown that how you can generate a RemoteCommand and join it to a component programmatically. Required libraries import java.util.Map; import javax.el.MethodExpression; import javax.faces.application.Application; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.event.MethodExpressionActionListener; import org.primefaces.component.outputlabel.OutputLabel; import org.primefaces.component.outputpanel.OutputPanel; import org.primefaces.component.remotecommand.RemoteCommand; import org.primefaces.component.selectcheckboxmenu.SelectCheckboxMenu; RemoteCommand example FacesContext ...