public String prerender() { aaaItemsItems = new FooDto[2][2]; for (int i = 0; i < 2; i++) { FooDto[] items = new FooDto[2]; for (int j = 0; j < 2; j++) { FooDto fooDto = new FooDto(); fooDto.setFoo(String.valueOf(i) + String.valueOf(j)); items[j] = fooDto; } aaaItemsItems[i] = items; } return null; }
protected List createItems() { List l = new ArrayList(); { FooDto f = new FooDto(); f.setFooNo(new Integer(1)); f.setAaa("aa1"); f.setBbb("bb1"); l.add(f); } { FooDto f = new FooDto(); f.setFooNo(new Integer(2)); f.setAaa("aa2"); f.setBbb("bb2"); l.add(f); } { FooDto f = new FooDto(); f.setFooNo(new Integer(3)); f.setAaa("aa3"); f.setBbb("bb3"); l.add(f); } return l; }