title: PrimeFaces dinamic CommandButtons and ContextMenu
body: <p>Please help me to solve the issue/question on how to add a dynamic <code>ContextMenu</code>(on left click) for <code>CommandButtons</code> which are dynamically added via Java. The count of CommandButtons is dynamic(min 50), but the <code>ContextMenu</code> is always the same:</p>
  
  <pre><code>Column column = ...
  ContextMenu contextmenu = ...
  
  CommandButton button1 = new CommandButton();
  //todo addContextMenu
  CommandButton button2 = new CommandButton();
  //todo addContextMenu
  ...
  CommandButton button50 = new CommandButton();
  //todo addContextMenu
  
  column.getChildren().add(button1);
  column.getChildren().add(button2);
  ...
  column.getChildren().add(button50);
  </code></pre>
  
  <p>PS I use Primefaces 5.3, Primefaces Extensions 4.0, Mojarra 2.2.5. Thanks in advance!</p>