@Override protected void onSubmit(AjaxRequestTarget target, Form form) { CoverageStoreInfo info = (CoverageStoreInfo) form.getModelObject(); try { onSave(info, target); } catch (IllegalArgumentException e) { paramsForm.error(e.getMessage()); target.add(paramsForm); } } };
add(paramsForm); GeoServerApplication app = getGeoServerApplication(); storeEditPanel = StoreExtensionPoints.getStoreEditPanel("parametersPanel", paramsForm, store, app); paramsForm.add(saveLink()); paramsForm.setDefaultButton(saveLink());
@Override void initUI(CoverageStoreInfo store) { dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(store); if (store.getId() != null) { //store id == null means the store is not part of catalog, forgo uniqueness check String workspaceId = store.getWorkspace().getId(); workspacePanel.getFormComponent().add( new CheckExistingResourcesInWorkspaceValidator(store.getId(), workspaceId)); } }
add(paramsForm); GeoServerApplication app = getGeoServerApplication(); storeEditPanel = StoreExtensionPoints.getStoreEditPanel( paramsForm.add(saveLink()); paramsForm.setDefaultButton(saveLink());
@Override void initUI(CoverageStoreInfo store) { dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(store); if (store.getId() != null) { // store id == null means the store is not part of catalog, forgo uniqueness check String workspaceId = store.getWorkspace().getId(); workspacePanel .getFormComponent() .add( new CheckExistingResourcesInWorkspaceValidator( store.getId(), workspaceId)); } }
@Override protected void onSubmit(AjaxRequestTarget target, Form form) { CoverageStoreInfo info = (CoverageStoreInfo) form.getModelObject(); try { onSave(info, target); } catch (IllegalArgumentException e) { paramsForm.error(e.getMessage()); target.addComponent(paramsForm); } } };