use of com.tomasio.projects.trainning.form.FaseForm in project trainning by fernandotomasio.
the class TurmasEfetivasController method removeFase.
public void removeFase(int index) {
RequestContext requestContext = RequestContextHolder.getRequestContext();
List<FaseForm> fases = (List) requestContext.getFlowScope().getCollection("fasesDataList");
fases.remove(index);
}
use of com.tomasio.projects.trainning.form.FaseForm in project trainning by fernandotomasio.
the class TurmasEfetivasController method retrieveFaseForm.
public FaseForm retrieveFaseForm(int index) {
RequestContext requestContext = RequestContextHolder.getRequestContext();
List<FaseForm> fases = (List) requestContext.getFlowScope().getCollection("fasesDataList");
FaseForm form = fases.get(index);
// inserção de campos para exibição na tela de confirmação
if (form.getLocalId() != 1) {
OrganizacaoDTO om = organizationalService.findOrganizacao(form.getLocalId());
form.setLocalSigla(om.getSigla());
}
form.setIndex(index);
return form;
}
Aggregations