本文整理汇总了Java中org.kuali.rice.krad.util.KRADConstants.QUESTION_PAGE_TITLE属性的典型用法代码示例。如果您正苦于以下问题:Java KRADConstants.QUESTION_PAGE_TITLE属性的具体用法?Java KRADConstants.QUESTION_PAGE_TITLE怎么用?Java KRADConstants.QUESTION_PAGE_TITLE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.kuali.rice.krad.util.KRADConstants
的用法示例。
在下文中一共展示了KRADConstants.QUESTION_PAGE_TITLE属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: populate
/**
* @see org.kuali.rice.krad.web.struts.pojo.PojoForm#populate(javax.servlet.http.HttpServletRequest)
*/
public void populate(HttpServletRequest request) {
super.populate(request);
// set the title of the jsp, this should come from a resource bundle
title = KRADConstants.QUESTION_PAGE_TITLE;
if (request.getAttribute(KRADConstants.DOC_FORM_KEY) != null) {
this.setFormKey((String) request.getAttribute(KRADConstants.DOC_FORM_KEY));
}
else if (request.getParameter(KRADConstants.DOC_FORM_KEY) != null) {
this.setFormKey(request.getParameter(KRADConstants.DOC_FORM_KEY));
}
if (request.getAttribute(KRADConstants.DOC_NUM) != null) {
this.setFormKey((String) request.getAttribute(KRADConstants.DOC_NUM));
}
if (request.getParameter(KRADConstants.RETURN_LOCATION_PARAMETER) != null) {
this.setBackLocation(request.getParameter(KRADConstants.RETURN_LOCATION_PARAMETER));
}
if (getMethodToCall().equals(KRADConstants.START_METHOD)) { // don't do this for the processAnswer action otherwise it blows up
Question kualiQuestion = KNSServiceLocator.getQuestion(questionType);
if (kualiQuestion == null) {
throw new RuntimeException("question implementation not found: " + request.getParameter(KRADConstants.QUESTION_IMPL_ATTRIBUTE_NAME));
}
// KULRICE-8077: PO Quote Limitation of Only 9 Vendors
String questionId = request.getParameter(KRADConstants.QUESTION_INST_ATTRIBUTE_NAME);
String questionTextAttributeName = KRADConstants.QUESTION_TEXT_ATTRIBUTE_NAME + questionId;
if (GlobalVariables.getUserSession().retrieveObject(questionTextAttributeName)!=null) {
this.setQuestionText((String)GlobalVariables.getUserSession().retrieveObject(questionTextAttributeName));
GlobalVariables.getUserSession().removeObject(questionTextAttributeName);
}
// some questions types default these so we should default if not
// present in request
if (questionText == null) {
questionText = kualiQuestion.getQuestion();
}
if (buttons == null) {
buttons = kualiQuestion.getButtons();
}
}
}