Esempio n. 1
0
 @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);
 }
Esempio n. 2
0
 @SuppressWarnings("unchecked")
 public void setSeparator(ActionEvent event) {
   CoreOutputText output = new CoreOutputText();
   output.setValue("New Separator");
   _panel.getFacets().put("separator", output);
 }