fix: tiles fims-popup 적용

main
minuk926 2 years ago
parent b9a4001252
commit d984cc92ab

@ -4,6 +4,7 @@ package kr.xit.fims.biz.cmm.fimsTotalPopup.web;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.cmm.FimsConst;
import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO; import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO;
import kr.xit.fims.biz.cmm.fimsTotalPopup.service.FimsTotalPopupService; import kr.xit.fims.biz.cmm.fimsTotalPopup.service.FimsTotalPopupService;
import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.validation.XitBeanValidator; import kr.xit.framework.core.validation.XitBeanValidator;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -45,7 +46,7 @@ public class FimsTotalPopupController {
* @author: * @author:
* @date: 2022. 9. 20. * @date: 2022. 9. 20.
*/ */
@GetMapping(value = "/fimsTotalPopup.do") @GetMapping(value = "/fimsTotalPopup")
public String popup(@RequestParam String selectedId, FimsTotalPopupVO vo, Model model){ public String popup(@RequestParam String selectedId, FimsTotalPopupVO vo, Model model){
vo.setReglt_id(selectedId); vo.setReglt_id(selectedId);
@ -59,11 +60,11 @@ public class FimsTotalPopupController {
return FimsConst.FIMS_JSP_BASE_PATH return FimsConst.FIMS_JSP_BASE_PATH
+"common/popup/fimsTotal" +"common/popup/fimsTotal"
+"_"+new Object() {}.getClass().getEnclosingMethod().getName() +"_"+new Object() {}.getClass().getEnclosingMethod().getName()
+".popup"; //메소드명 +".fims-pop"; //메소드명
} }
@PutMapping(value="update.do") @PutMapping(value="/update")
public String update(@RequestBody FimsTotalPopupVO vo, FimsTotalPopupVO fimsTotalPopupVO, BindingResult bindingResult){ public String update(@RequestBody FimsTotalPopupVO vo, FimsTotalPopupVO fimsTotalPopupVO, BindingResult bindingResult){
xitBeanValidator.validate(vo, bindingResult); xitBeanValidator.validate(vo, bindingResult);
@ -71,12 +72,12 @@ public class FimsTotalPopupController {
fimsTotalPopupService.modifyProc(vo); fimsTotalPopupService.modifyProc(vo);
return "jsonView"; return FrameworkConstants.JSON_VIEW;
} }
@DeleteMapping(value="delete.do") @DeleteMapping(value="delete.do")
public String delete(){ public String delete(){
return "jsonView"; return FrameworkConstants.JSON_VIEW;
} }
} }

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC <!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN" "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
"http://tiles.apache.org/dtds/tiles-config_3_0.dtd"> "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
<tiles-definitions> <tiles-definitions>
<!-- ******************************* --> <!-- ******************************* -->
<!-- tiles "biz" View Page 설정 --> <!-- tiles "biz" View Page 설정 -->
@ -91,6 +91,28 @@
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}/{4}/{5}/{6}/{7}.jsp" /> <put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}/{4}/{5}/{6}/{7}.jsp" />
</definition> </definition>
<definition name="*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}.jsp" />
</definition>
<definition name="*/*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}.jsp" />
</definition>
<definition name="*/*/*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}.jsp" />
</definition>
<definition name="*/*/*/*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}/{4}.jsp" />
</definition>
<definition name="*/*/*/*/*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}/{4}/{5}.jsp" />
</definition>
<definition name="*/*/*/*/*/*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}/{4}/{5}/{6}.jsp" />
</definition>
<definition name="*/*/*/*/*/*/*.fims-pop" extends="biz-pop">
<put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}/{4}/{5}/{6}/{7}.jsp" />
</definition>
<!-- ******************************* --> <!-- ******************************* -->
<!-- tiles "main" View Page 설정 --> <!-- tiles "main" View Page 설정 -->

Loading…
Cancel
Save