Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.FormComponent.error()


        String name = (String) nameComponent.getConvertedInput();
       
        if(name == null) {
            ValidationError error = new ValidationError();
            error.addMessageKey("StoreNameValidator.storeNameRequired");
            nameComponent.error((IValidationError) error);
            return;
        }

        Catalog catalog = GeoServerApplication.get().getCatalog();
View Full Code Here


            if (!existingId.equals(edittingStoreId)) {
                ValidationError error = new ValidationError();
                error.addMessageKey("StoreNameValidator.storeExistsInWorkspace");
                error.setVariable("workspace", workspace.getName());
                error.setVariable("storeName", name);
                nameComponent.error((IValidationError) error);
            }
        }
    }

}
View Full Code Here

       
        if(name == null) {
            if(required) {
                ValidationError error = new ValidationError();
                error.addMessageKey("StoreNameValidator.storeNameRequired");
                nameComponent.error((IValidationError) error);
            }
            return;
        }

        Catalog catalog = GeoServerApplication.get().getCatalog();
View Full Code Here

            if (!existingId.equals(edittingStoreId)) {
                ValidationError error = new ValidationError();
                error.addMessageKey("StoreNameValidator.storeExistsInWorkspace");
                error.setVariable("workspace", workspace.getName());
                error.setVariable("storeName", name);
                nameComponent.error((IValidationError) error);
            }
        }
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.