Package pl.tomaszdziurko.itemdirectory.domain.entities.items

Examples of pl.tomaszdziurko.itemdirectory.domain.entities.items.Location


 
  @SpringBean
  private LocationDao locationDao;
 
  public AddEditLocationPage() {
    setDefaultModel(new Model<Location>(new Location()));
    initGui();
  }
View Full Code Here


    setDefaultModel(new Model<Location>(new Location()));
    initGui();
  }
 
  public AddEditLocationPage(Long locationId) {
    Location location = locationService.findById(locationId);
    setDefaultModel(new Model<Location>(location));
    initGui();
  }
View Full Code Here

    addLocationForm.add(createLabelFieldWithValidation());
   
    Button submitButton = new Button("submitButton") {
      @Override
      public void onSubmit() {
        Location location = getLocationFromPageModel();
       
        if(location.isNew()) {
          locationService.save(location);
          getSession().info(new StringResourceModel("locationAdded", this, null).getString());
        }
        else {
          locationService.update(location);
View Full Code Here

TOP

Related Classes of pl.tomaszdziurko.itemdirectory.domain.entities.items.Location

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.