THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
@Property private SelectModel ColorSelectModelcolorSelectModel; @Inject SelectModelFactory selectModelFactory; ... void setupRender() { // invoke my service to find all colors, e.g. in the database List<Color> colors = colorService.findAll(); // create a SelectModel from my list of colors ColorSelectModelcolorSelectModel = selectModelFactory.create(colors, "name"); } |
...