This page shows two ways how to fill separatorlist or Formlist
Java
To do this, all we have to do is the same step shown above, except in step 2 ... instead of the above code, put this code, with a small detail, the class Teste is a DAO class created earlier (click here to see how do that) [Fig. Class DAO]
Step 1: First of all, create your application and connect to your database, create your page and put a separator list [Fig. 1]
Step 2: Then, click "JAVA" and your controller put this code below, specify your connection name [ex. teste_isac_pg_1] and your select [ex. SELECT nome as nome, pai as nome_de_pai, mae as nome_da_mae, idade as idade FROM public.teste]
publicclassInsert_fotoControllerextendsController { publicResponseactionIndex() throwsIOException,IllegalArgumentException,IllegalAccessException{Insert_foto model =newInsert_foto();model.load();Insert_fotoView view =newInsert_fotoView();/*----#start-code(index)----*/model.loadSeparatorlist_1(Core.query("teste_isac_pg_1","SELECT nome as nome, pai as nome_de_pai, mae as nome_da_mae, idade as idade FROM public.teste "));/*----#end-code----*/view.setModel(model);returnthis.renderView(view); }/*----#start-code(custom_actions)----*//*----#end-code----*/ }
and voilá [Fig. 2]... it's show the data is stored in test database[Fig. 3]