Package com.liferay.faces.bridge.event

Examples of com.liferay.faces.bridge.event.EventPayloadWrapper


        // EventPayloadWrapper, then determine whether or not this is happening during a redirect. If this is
        // the case, then the bridge request scope must be maintained from the EVENT_PHASE into the RENDER_PHASE
        // by utilizing a portlet session attribute. This is because render parameters will not survive a
        // redirect.
        if ((eventPayload != null) && (eventPayload instanceof EventPayloadWrapper)) {
          EventPayloadWrapper eventPayloadWrapper = (EventPayloadWrapper) eventPayload;

          if (eventPayloadWrapper.isRedirect()) {

            bridgeRequestScopeTransport = BridgeRequestScope.Transport.PORTLET_SESSION_ATTRIBUTE;
          }
        }
View Full Code Here


    // FACES-1465: If the user requested a redirect (Liferay Only), then  and redirect to the selected portal page.
    if (customersViewBean.isSendRedirect()) {

      // Wrap the event payload with an EventPayloadWrapper and specify that a redirect taking place. Liferay
      // Faces Bridge will detect the redirect, and maintain the Bridge Request Scope accordingly.
      eventPayload = new EventPayloadWrapper(customer, true);

      // Issue the redirect to the selected portal page.
      try {
        ThemeDisplay themeDisplay = (ThemeDisplay) externalContext.getRequestMap().get(WebKeys.THEME_DISPLAY);
        Layout layout = LayoutLocalServiceUtil.getLayout(customersViewBean.getPortalPageId());
View Full Code Here

TOP

Related Classes of com.liferay.faces.bridge.event.EventPayloadWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.