Package net.sf.wicketdemo.domain

Examples of net.sf.wicketdemo.domain.Person


        });

        final Button button = new Button("addAuthor") {
      @Override
      public void onSubmit() {
        ((List<Person>) authorsModel.getObject()).add(new Person());
      }
    };
        form.add(button);
        add(form);
View Full Code Here


    final DropDownChoice ddc = new DropDownChoice("authors",
                new Model(CollectionUtils.isEmpty(authors) ? null : authors.iterator().next()), persons, renderer);
    ddc.add(new IValidator<Person>() {

            public void validate(final IValidatable<Person> validatable) {
        final Person author = validatable.getValue();
        if (author == null) {
          final ValidationError error = new ValidationError();
          error.setMessage("Author must be filled in");
          validatable.error(error);
        }
View Full Code Here

TOP

Related Classes of net.sf.wicketdemo.domain.Person

Copyright © 2018 www.massapicom. 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.