Bitte helfen Sie mir zu lösen das Problem/Frage, wie Sie eine dynamische ContextMenu
(auf Linksklick) für CommandButtons
, die dynamisch über Java hinzugefügt werden. Die Zahl der Command dynamisch ist (min 50), aber die ContextMenu
ist immer das gleiche:PrimeFaces Dynamic CommandButtons und ContextMenu
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);
PS Ich benutze Primefaces 5.3, Primefaces Extensions 4.0, Mojarra 2.2.5. Danke im Voraus!
Sie wissen, dass 'Primefaces' Ihnen die Komponente' contextMenu' geben?!? –