135136137138139140141142143144145
UIViewRoot viewRoot = facesContext.getViewRoot(); ((LocaleAware) dataModel).setLocale(viewRoot.getLocale()); } } modifiable.modify(filterFields, sortFields); } return dataModel; } @SuppressWarnings("unchecked")
219220221222223224225226227228229
ModifiableModel modifiableModel = new ModifiableModel( model, getVar()); model = modifiableModel; modifiable = modifiableModel; } modifiable.modify(null, sortFields); } } /* * TODO: Verify - do we really need it model.setSortOrder(getSortOrder());
128129130131132133134135136137138
} else { ModifiableModel modifiableModel = new ModifiableModel(dataModel, getVar()); dataModel = modifiableModel; modifiable = modifiableModel; } modifiable.modify(filterFields, sortFields); } return dataModel; } @SuppressWarnings("unchecked")
218219220221222223224225226227228
371372373374375376377378379380381
UIViewRoot viewRoot = facesContext.getViewRoot(); ((LocaleAware) dataModel).setLocale(viewRoot.getLocale()); } } modifiable.modify(filterFields, sortFields); } return dataModel; } /**
221222223224225226227228229230231
((LocaleAware) dataModel).setLocale(viewRoot.getLocale()); } } if (modifiable != null) { modifiable.modify(filterFields, sortFields); } return dataModel; } @SuppressWarnings("unchecked")
140141142143144145146147148149150