當前位置: 首頁>>代碼示例>>Java>>正文


Java ActionResponse.setRenderParameter方法代碼示例

本文整理匯總了Java中javax.portlet.ActionResponse.setRenderParameter方法的典型用法代碼示例。如果您正苦於以下問題:Java ActionResponse.setRenderParameter方法的具體用法?Java ActionResponse.setRenderParameter怎麽用?Java ActionResponse.setRenderParameter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.portlet.ActionResponse的用法示例。


在下文中一共展示了ActionResponse.setRenderParameter方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doProcessAction

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@Override
protected void doProcessAction(ActionRequest request, ActionResponse response) {

	try {
		DummyGenerator<OrgContext> dummyGenerator = _orgDummyFactory.create(request);
		dummyGenerator.create(request);

	} catch (Exception e) {
		hideDefaultSuccessMessage(request);
		_log.error(e, e);
	}

	response.setRenderParameter("mvcRenderCommandName", LDFPortletKeys.COMMON);
	SessionMessages.add(request, "success");
	
}
 
開發者ID:yasuflatland-lf,項目名稱:liferay-dummy-factory,代碼行數:17,代碼來源:OrganizationMVCActionCommand.java

示例2: doProcessAction

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@Override
protected void doProcessAction(ActionRequest request, ActionResponse response) throws Exception {

	try {
		response.setRenderParameter("mvcRenderCommandName", LDFPortletKeys.COMMON);

		DummyGenerator<MBContext> dummyGenerator = _MBDummyFactory.create(request);
		dummyGenerator.create(request);

		SessionMessages.add(request, "success");

	} catch (Exception e) {
		hideDefaultSuccessMessage(request);
		SessionErrors.add(request,Exception.class);
		_log.error(e, e);
	}

}
 
開發者ID:yasuflatland-lf,項目名稱:liferay-dummy-factory,代碼行數:19,代碼來源:MBMVCActionCommand.java

示例3: doProcessAction

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@Override
protected void doProcessAction(ActionRequest request, ActionResponse response) {

	try {
		DummyGenerator<CategoryContext> dummyGenerator = _categoryDummyFactory.create(request);
		dummyGenerator.create(request);

	} catch (Exception e) {
		hideDefaultSuccessMessage(request);
		_log.error(e, e);
		return;
	}

	response.setRenderParameter("mvcRenderCommandName", LDFPortletKeys.COMMON);
	SessionMessages.add(request, "success");

}
 
開發者ID:yasuflatland-lf,項目名稱:liferay-dummy-factory,代碼行數:18,代碼來源:CategoryMVCActionCommand.java

示例4: doProcessAction

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@Override
protected void doProcessAction(ActionRequest request, ActionResponse response) {

	try {
		DummyGenerator<DLContext> dummyGenerator = _dlDummyFactory.create(request);
		dummyGenerator.create(request);

	} catch (Exception e) {
		hideDefaultSuccessMessage(request);
		_log.error(e, e);
	}

	response.setRenderParameter("mvcRenderCommandName", LDFPortletKeys.COMMON);
	SessionMessages.add(request, "success");

}
 
開發者ID:yasuflatland-lf,項目名稱:liferay-dummy-factory,代碼行數:17,代碼來源:DocumentMVCActionCommand.java

示例5: doProcessAction

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@Override
protected void doProcessAction(ActionRequest request, ActionResponse response) {

	try {
		DummyGenerator<JournalContext> dummyGenerator = _journalDummyFactory.create(request);
		dummyGenerator.create(request);

	} catch (Exception e) {
		hideDefaultSuccessMessage(request);
		_log.error(e, e);
	}

	response.setRenderParameter("mvcRenderCommandName", LDFPortletKeys.COMMON);
	SessionMessages.add(request, "success");

}
 
開發者ID:yasuflatland-lf,項目名稱:liferay-dummy-factory,代碼行數:17,代碼來源:JournalMVCActionCommand.java

示例6: doProcessAction

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@Override
protected void doProcessAction(ActionRequest request, ActionResponse response) {

	try {
		DummyGenerator<PageContext> dummyGenerator = _pageDummyFactory.create(request);
		dummyGenerator.create(request);

	} catch (Exception e) {
		hideDefaultSuccessMessage(request);
		_log.error(e, e);
	}

	response.setRenderParameter("mvcRenderCommandName", LDFPortletKeys.COMMON);
	SessionMessages.add(request, "success");

}
 
開發者ID:yasuflatland-lf,項目名稱:liferay-dummy-factory,代碼行數:17,代碼來源:PageMVCActionCommand.java

示例7: saveCfg

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@ActionMapping(params = "action=saveCfg")
private void saveCfg(final ActionRequest request,
        final ActionResponse response, final Model model) {
	
	if (Constants.RESTRICT_TO_DEMO) {
		m_objLog.debug("saveCfg::denied()");
		SessionErrors.add(request, "common.demo.denied");
		return;
	}
	
	m_objLog.debug("saveCfg::start()");
	response.setRenderParameter("tabId", "cfg");
	// response.setRenderParameter("cfgId",
	// form.getCategory().toString().toLowerCase());

	CustomPortalServiceHandler.saveConfig(request);
	m_objLog.debug("saveCfg::end()");
}
 
開發者ID:fraunhoferfokus,項目名稱:particity,代碼行數:19,代碼來源:ManagementController.java

示例8: editmodule

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
@ProcessAction(name = "editmodule")
public void editmodule(ActionRequest request, ActionResponse response)
		throws Exception {
	long key = ParamUtil.getLong(request, "resourcePrimKey");
	if (Validator.isNotNull(key)) {
		response.setRenderParameter("moduleId", Long.toString(key));
		try {
			response.setWindowState(LiferayWindowState.POP_UP);
		} catch (WindowStateException e) {
			if(log.isDebugEnabled())e.printStackTrace();
			if(log.isErrorEnabled())log.error(e.getMessage());
		}
		response.setRenderParameter("view", "editmodule");
		response.setRenderParameter("editType", "edit");
	}
}
 
開發者ID:TelefonicaED,項目名稱:liferaylms-portlet,代碼行數:17,代碼來源:modulePortlet.java

示例9: editOffer

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
/**
 * Edits the offer.
 *
 * @param request the request
 * @param response the response
 * @param model the model
 */
@ActionMapping(params = "action=editOffer")
public void editOffer(final ActionRequest request,
        final ActionResponse response, final Model model) {
	final Long offerId = this.getOfferId(request);
	m_objLog.debug("editOffer::start(" + offerId + ")");

	if (offerId != null) {
		final ThemeDisplay themeDisplay = (ThemeDisplay) request
		        .getAttribute(WebKeys.THEME_DISPLAY);
		final OfferForm form = CustomOfferServiceHandler.getOffer(offerId);
		m_objLog.debug("Edit offer with agency contact: "
		        + form.isRequireAgencyContact());
		model.addAttribute("data", form);
		response.setRenderParameter("jspPage", "../shared/offer");
		response.setRenderParameter("actionType", "approve");
		CustomLockServiceHandler.lock(AHOffer.class.getName(),
		        form.getOfferId(), themeDisplay);
	}

	m_objLog.debug("editOffer::end");
}
 
開發者ID:fraunhoferfokus,項目名稱:particity,代碼行數:29,代碼來源:ManagementController.java

示例10: viewOrg

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
/**
 * View org.
 *
 * @param request the request
 * @param response the response
 * @param model the model
 */
@ActionMapping(params = "action=viewOrg")
public void viewOrg(final ActionRequest request,
        final ActionResponse response, final Model model) {
	m_objLog.debug("viewOrg::start");

	final Long l_orgId = this.getOrgId(request);
	if (l_orgId != null) {
		final String actionType = request.getParameter("actionType");
		if (actionType != null) {
			response.setRenderParameter("actionType", actionType);
		}
		final RegistrationForm form = CustomOrgServiceHandler
		        .getOrganisation(l_orgId);
		model.addAttribute("data", form);
		response.setRenderParameter("jspPage", "orgDetail");
	}

	m_objLog.debug("viewOrg::end");
}
 
開發者ID:fraunhoferfokus,項目名稱:particity,代碼行數:27,代碼來源:ManagementController.java

示例11: removeCategoryEntry

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
/**
 * Removes the category entry.
 *
 * @param request the request
 * @param response the response
 * @param model the model
 */
@RequestMapping(value = "view")
@ActionMapping(params = "action=removeCategoryEntry")
public void removeCategoryEntry(final ActionRequest request,
        final ActionResponse response, final Model model) {
	if (Constants.RESTRICT_TO_DEMO) {
		m_objLog.debug("removeCategoryEntry::denied()");
		SessionErrors.add(request, "common.demo.denied");
		return;
	}
	
	m_objLog.debug("removeCategoryEntry::start");

	final String catId = request.getParameter("catId");
	final String itemId = request.getParameter("itemId");

	if (catId != null) {
		response.setRenderParameter("catId", catId);
		final Long l_itemId = Long.parseLong(itemId);
		if (l_itemId != null) {
			CustomCategoryServiceHandler.deleteCategoryEntry(l_itemId);
		}
	}

	m_objLog.debug("removeCategoryEntry::end");
}
 
開發者ID:fraunhoferfokus,項目名稱:particity,代碼行數:33,代碼來源:AdminController.java

示例12: setParameterIntoResponse

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
private void setParameterIntoResponse(ActionResponse response,
		Employee employee) throws PortalException, SystemException {
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.MAPPINGUSERID,String.valueOf(employee.getMappingUserId()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.WORKINGUNITID,String.valueOf(employee.getWorkingUnitId()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.MAINJOBPOSID,String.valueOf(employee.getMainJobPosId()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.EMPLOYEENO,String.valueOf(employee.getEmployeeNo()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.PERSONELDOCNO,String.valueOf(employee.getPersonelDocNo()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.FULLNAME,String.valueOf(employee.getFullName()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.GENDER,String.valueOf(employee.getGender()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.BIRTHDATE,String.valueOf(employee.getBirthdate()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.OFFICETEL,String.valueOf(employee.getOfficeTel()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.HOMETEL,String.valueOf(employee.getHomeTel()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.MOBILE,String.valueOf(employee.getMobile()));
	response.setRenderParameter(EmployeeKeys.AddEditAttributes.EMAIL,String.valueOf(employee.getEmail()));
	if (employee.getMappingUserId() > 0){
		User user =  UserLocalServiceUtil.getUser(employee.getMappingUserId());
		response.setRenderParameter(EmployeeKeys.AddEditAttributes.SCREENNAME,String.valueOf(user.getScreenName()));
		//response.setRenderParameter(EmployeeKeys.AddEditAttributes.PASSWORD,String.valueOf(user.getPassword()));
		//response.setRenderParameter(EmployeeKeys.AddEditAttributes.REPASSWORD,String.valueOf(user.get()));
		response.setRenderParameter(EmployeeKeys.AddEditAttributes.ISCREATUSER,String.valueOf(1));
	}else {
		response.setRenderParameter(EmployeeKeys.AddEditAttributes.ISCREATUSER,String.valueOf(0));
	}
}
 
開發者ID:openegovplatform,項目名稱:OEPv2,代碼行數:25,代碼來源:EmpLoyeePortlet.java

示例13: unlock

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
/**
 * Unlock.
 *
 * @param request the request
 * @param response the response
 * @param model the model
 */
@ActionMapping(params = "action=unlock")
public void unlock(final ActionRequest request,
        final ActionResponse response, final Model model) {
	final Long offerId = this.getOfferId(request);
	m_objLog.debug("unlock::start(" + offerId + ")");

	if (offerId != null && offerId >= 0) {
		final ThemeDisplay themeDisplay = (ThemeDisplay) request
		        .getAttribute(WebKeys.THEME_DISPLAY);
		CustomLockServiceHandler.unlock(AHOffer.class.getName(), offerId,
		        themeDisplay);
	}
	// redirect to offer tab
	response.setRenderParameter("tabId", "offer");

	m_objLog.debug("unlock::end");
}
 
開發者ID:fraunhoferfokus,項目名稱:particity,代碼行數:25,代碼來源:ManagementController.java

示例14: applicationRedirectWId

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
/**
    * This Action sets the "jspPage" parameter to "ActionRequest-param successForward" so that
    * processing is forwarded to ActionRequest-param successForward.
    *
    * @param request
    * @param response
    * ActionRequest-param exceptionForward
    * ActionRequest-param successForward
    * ActionRequest-param applicationId
    * @throws PortalException 
    * @throws java.lang.Exception
    */
@ProcessAction(name = "applicationRedirectWId")
public void applicationRedirectWId(ActionRequest request, ActionResponse response) {
	String exceptionForward = "/devel/error.jsp";
	try {
		exceptionForward = ParamUtil.getString(request, "exceptionForward");
		String successForward = ParamUtil.getString(request, "successForward");
		Application application = ApplicationLocalServiceUtil.getApplication(ParamUtil.getLong(request, "applicationId"));
        if (Validator.isNotNull(application)) {
            request.setAttribute("application", application);
            response.setRenderParameter("jspPage", successForward);
        } else {
			request.setAttribute("errorMsg", "Internal Error: missing aplicationId");
			response.setRenderParameter("jspPage", exceptionForward);				        	
        }
	} catch (Exception e) {
		_log.debug(e.getMessage());
		request.setAttribute("errorMsg", e.getMessage());
		response.setRenderParameter("jspPage", exceptionForward);			
	}
}
 
開發者ID:fraunhoferfokus,項目名稱:govapps,代碼行數:33,代碼來源:ContentPortlet.java

示例15: myAdministrationNoEvent

import javax.portlet.ActionResponse; //導入方法依賴的package包/類
public void myAdministrationNoEvent(ActionRequest request,
		ActionResponse response) {

	/**
	 * Get sample text from UI
	 */
	String administrationNo = ParamUtil.getString(request,
			"administrationNo", "");
	QName qName = new QName("http://org.oep.com/events",
			"ipc-administrationno");
	String tg = ParamUtil.getString(request, "tabs1");
	if (tg == null || tg.equals("")) {
		tg = "one";
	}
	response.setRenderParameter("tabs1", tg);
	response.setEvent(qName, administrationNo);
}
 
開發者ID:openegovplatform,項目名稱:OEPv2,代碼行數:18,代碼來源:MenuListDomain.java


注:本文中的javax.portlet.ActionResponse.setRenderParameter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。