@SuppressWarnings("unchecked") public void add(ActionEvent event) { List<UIComponent> children = _panel.getChildren(); CoreOutputText output = new CoreOutputText(); output.setValue("Item " + (children.size() + 1)); children.add(0, output); }
@SuppressWarnings("unchecked") public void setSeparator(ActionEvent event) { CoreOutputText output = new CoreOutputText(); output.setValue("New Separator"); _panel.getFacets().put("separator", output); }