EditContactMVCActionCommand.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:ch-inofix-contact-manager 作者:
protected String getSaveAndContinueRedirect(
        ActionRequest actionRequest, Contact contact, Layout layout, String redirect)
    throws Exception {

    _log.info("getSaveAndContinueRedirect()");

    PortletConfig portletConfig = (PortletConfig)actionRequest.getAttribute(
        JavaConstants.JAVAX_PORTLET_CONFIG);

    LiferayPortletURL portletURL = PortletURLFactoryUtil.create(actionRequest, portletConfig.getPortletName(), layout, PortletRequest.RENDER_PHASE);

    portletURL.setParameter("mvcRenderCommandName", "editContact");

    portletURL.setParameter(Constants.CMD, Constants.UPDATE, false);
    portletURL.setParameter("redirect", redirect, false);
    portletURL.setParameter(
        "groupId", String.valueOf(contact.getGroupId()), false);
    portletURL.setParameter(
        "contactId", String.valueOf(contact.getContactId()), false);
    portletURL.setWindowState(actionRequest.getWindowState());

    return portletURL.toString();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号