Examples of YRequestContext


Examples of de.hybris.yfaces.context.YRequestContext

    // frames are getting added when:
    // a) method is get
    // b) method is post and START_REQUEST phase has finished
    // e.g. nothing is done when the Frame was requested from within an
    // action/actionlistener
    YRequestContext yctx = YRequestContext.getCurrentContext();
    boolean isPostback = yctx.isPostback();
    boolean isStartRequest = ((YRequestContextImpl) yctx).getRequestPhase().equals(
        REQUEST_PHASE.START_REQUEST);

    boolean addFrameToCurrentPage = !(isPostback && isStartRequest);

    if (addFrameToCurrentPage) {
      yctx.getPageContext().addFrame(frame);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.