@Controller @RequestMapping(value="/subcategory") public class UpdateSubCategoryController extends Object
| Constructor and Description |
|---|
UpdateSubCategoryController(org.egov.adtax.service.SubCategoryService subCategoryService) |
| Modifier and Type | Method and Description |
|---|---|
List<org.egov.adtax.entity.HoardingCategory> |
getAllHoardingCategory() |
org.egov.adtax.entity.SubCategory |
subCategoryModel(Long id,
org.springframework.ui.Model model) |
String |
update(Long id) |
String |
update(org.egov.adtax.entity.SubCategory subCategory,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs) |
org.springframework.web.servlet.ModelAndView |
updateView(Long id,
org.egov.adtax.entity.SubCategory subcategory) |
String |
view(org.egov.adtax.entity.SubCategory subCategory,
org.springframework.validation.BindingResult errors) |
@Autowired public UpdateSubCategoryController(org.egov.adtax.service.SubCategoryService subCategoryService)
@ModelAttribute
public org.egov.adtax.entity.SubCategory subCategoryModel(@PathVariable
Long id,
org.springframework.ui.Model model)
@ModelAttribute(value="hoardingCategories") public List<org.egov.adtax.entity.HoardingCategory> getAllHoardingCategory()
@RequestMapping(value="/update/{id}",
method=POST)
public String update(@ModelAttribute
org.egov.adtax.entity.SubCategory subCategory,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs)
@RequestMapping(value="/updateSubCategory/{id}",
method=GET)
public String update(@PathVariable
Long id)
@RequestMapping(value="/update/{id}",
method=GET)
public org.springframework.web.servlet.ModelAndView updateView(@PathVariable(value="id")
Long id,
@ModelAttribute
org.egov.adtax.entity.SubCategory subcategory)
@RequestMapping(value="/view/{id}",
method=GET)
public String view(@ModelAttribute
org.egov.adtax.entity.SubCategory subCategory,
org.springframework.validation.BindingResult errors)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.