本文整理匯總了Java中org.kuali.rice.krad.labs.KradLabsForm類的典型用法代碼示例。如果您正苦於以下問題:Java KradLabsForm類的具體用法?Java KradLabsForm怎麽用?Java KradLabsForm使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
KradLabsForm類屬於org.kuali.rice.krad.labs包,在下文中一共展示了KradLabsForm類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setSessionTimeout
import org.kuali.rice.krad.labs.KradLabsForm; //導入依賴的package包/類
@RequestMapping(params = "methodToCall=setSessionTimeout")
public ModelAndView setSessionTimeout(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
HttpServletRequest request, HttpServletResponse response) {
// for testing purposes set the session timeout to three minutes
request.getSession().setMaxInactiveInterval(360);
((KradLabsForm) form).setSessionTimeoutInterval(360);
return getModelAndView(form);
}
示例2: setSessionTimeout
import org.kuali.rice.krad.labs.KradLabsForm; //導入依賴的package包/類
@RequestMapping(params = "methodToCall=setSessionTimeout")
public ModelAndView setSessionTimeout(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
HttpServletRequest request, HttpServletResponse response) {
// for testing purposes set the session timeout to three minutes
request.getSession().setMaxInactiveInterval(120000);
((KradLabsForm) form).setSessionTimeoutInterval(120000);
return getUIFModelAndView(form);
}