I have a team form and a member form, team contains members.
In my members jsp, I want to show checkboxes with the possible members and I want to show the already members as checked checkbox.
I am doing something wrong , because its not working… Can someone help me ?
I have in my form two ArrayList with getters and setters
private List possiveisMembros = new ArrayList(); //possible member
private List membrosSelecionados = new ArrayList(); // selected member
in my action i populate them with value from my database.
//each member have a id(codigoFuncionario) and a name (nomeMembro).
//mef is my membersForm
ArrayList possiveisMembros = getListaPossiveisMembrosEquipe(); //method that get the values from DB for possible members
ArrayList membrosSelecionados = getListaMembrosEquipeSelecionados(mef); //method that get the values from DB for my selected members
mef.setPossiveisMembros(possiveisMembros); // setting value in my form – possible members
mef.setMembrosSelecionados(membrosSelecionados); // setting value in my form – selected members