@Override public void postList( HttpServletRequest request, ModelAndView mav, PeticioDeFirmaFilterForm filterForm, List<PeticioDeFirma> list) throws I18NException { super.postList(request, mav, filterForm, list); for (PeticioDeFirma pf : list) { if (pf.getDataFinal() != null) { filterForm.getHiddenFields().remove(DATAFINAL); return; } } filterForm.addHiddenField(DATAFINAL); }
@Override public PeticioDeFirmaFilterForm getPeticioDeFirmaFilterForm( Integer pagina, ModelAndView mav, HttpServletRequest request) throws I18NException { PeticioDeFirmaFilterForm peticioDeFirmaFilterForm; peticioDeFirmaFilterForm = super.getPeticioDeFirmaFilterForm(pagina, mav, request); if (peticioDeFirmaFilterForm.isNou()) { peticioDeFirmaFilterForm.setSubTitleCode("peticiodefirma.activa.desc"); if (peticioDeFirmaFilterForm.getGroupByFields() != null) { peticioDeFirmaFilterForm.getGroupByFields().remove(TIPUSESTATPETICIODEFIRMAID); } } String filterByTitol = (String) request.getSession().getAttribute(FILTER_BY_TITOL_KEY); if (filterByTitol != null) { peticioDeFirmaFilterForm.setTitol(filterByTitol); request.getSession().removeAttribute(FILTER_BY_TITOL_KEY); } return peticioDeFirmaFilterForm; }