25262728293031
private ResourcesHolder holder; void setupRender() { holder = new ResourcesHolder("success"); }
35363738394041
@InjectPage private FormFragmentOutput outputPage; void onPrepare() { subscribe = new SubscribeData(); }
42434445464748
return subscribe; } void onPrepare() { subscribe = new SubscribeData(); }
37383940414243
96979899100101102103104105106107
void onSelectedFromAddNew() { if (form.isValid()) { ToDoItem item = new ToDoItem(); item.setTitle("<New To Do>"); item.setOrder(items.size()); database.add(item); } }
868788899091929394959697
void onSelectedFromAddNew() { if (form.isValid()) { ToDoItem item = new ToDoItem(); item.setTitle("<New To Do>"); item.setOrder(encoder.getValues().size()); database.add(item); } }
2223242526272829303132333435
*/ public class BeanDisplayEnumDemo { public ToDoItem getObject() { ToDoItem item = new ToDoItem(); item.setId(1); item.setOrder(1); item.setTitle("Develop Faster-Than-Light Travel"); item.setUrgency(Urgency.HIGH); return item; }
56575859606162636465666768
add("Cure Common Cold", Urgency.LOW, 3); } private void add(String title, Urgency urgency, int order) { ToDoItem item = new ToDoItem(); item.setTitle(title); item.setUrgency(urgency); item.setOrder(order); add(item); }