示例#1
0
 @Override
 public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
   if (StringUtils.isEmpty(value)) return null;
   UnitListManager unitListManager = BeanContext.getFromSession("unitListManager");
   Unit unit = unitListManager.getRecordByName(value);
   return unit;
 }
 protected PackageTypeListManager getPackageTypeListManager() {
   return BeanContext.getFromSession("packageTypeListManager");
 }
 public void initializeView(String elementType, String viewTitle, String sectionName) {
   String pageManagerName = NameUtil.uncapName(elementType) + "PageManager";
   PageManager<?> pageManager = BeanContext.getFromSession(pageManagerName);
   initializeView(pageManager, viewTitle, sectionName);
 }
 protected GraphicsHelper getGraphicsHelper() {
   return BeanContext.getFromSession("graphicsHelper");
 }
示例#5
0
 public DataModel<ImportListObject> getImports(Collection<Import> importsList) {
   ImportListManager importListManager = BeanContext.getFromSession("importListManager");
   DataModel<ImportListObject> dataModel = importListManager.getDataModel(importsList);
   return dataModel;
 }