Examples of PartialPageContext


Examples of org.apache.myfaces.trinidad.context.PartialPageContext

    // Check to see if this is a partial page render.  If so, we need
    // to push the ID of the postscript onto the partial target stack
    final String postscriptId = _getPostscriptId(rc, formName);
   
    PartialPageContext pprContext = rc.getPartialPageContext();

    if (pprContext != null)
    {
      if (!pprContext.isInsidePartialTarget())
      {
        pprContext.addPartialTarget(postscriptId);

        // if optimized PPR is enabled, we will never call encodeall at this point, so we need
        // no force the postscript element to render now
        if (PartialPageUtils.isOptimizedPPREnabled(context, false))
        {
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

  {
    String noJavaScriptSupport = "false";
    ResponseWriter writer = context.getResponseWriter();

    String formName = arc.getFormData().getName();
    PartialPageContext pprContext = arc.getPartialPageContext();

    // Write out the hidden form field that identifies which
    // form is the one being submitted
    writer.startElement("input", null);
    writer.writeAttribute("type", "hidden", null);
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

    FacesBean           bean) throws IOException
  {
    ResponseWriter writer = context.getResponseWriter();

    String formName = arc.getFormData().getName();
    PartialPageContext pprContext = arc.getPartialPageContext();

    // Write out the hidden form field that identifies which
    // form is the one being submitted
    writer.startElement("input", null);
    writer.writeAttribute("type", "hidden", null);
    writer.writeAttribute("name", CoreResponseStateManager.FORM_FIELD_NAME, null);
    writer.writeAttribute("value", formName, null);
    writer.endElement("input");

    // Check to see if this is a partial page render.  If so, we need
    // to push the ID of the postscript onto the partial target stack
    final String postscriptId = _getPostscriptId(arc, formName);
    if (pprContext != null)
    {
      if (!pprContext.isInsidePartialTarget())
      {
        pprContext.addPartialTarget(postscriptId);
      }
    }

    if (postscriptId != null)
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

   */
  protected boolean canSkipRendering(
    RenderingContext rc,
    String           clientId)
  {
    PartialPageContext ppc = rc.getPartialPageContext();
    if ((ppc == null) ||
        ppc.isInsidePartialTarget() ||
        ppc.isPartialTarget(clientId))
      return false;

    return true;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

  protected boolean canSkipRendering(
    FacesContext     context,
    RenderingContext rc,
    UIComponent      component)
  {
    PartialPageContext ppc = rc.getPartialPageContext();
    if ((ppc == null) ||
        ppc.isInsidePartialTarget())
      return false;

    String clientId = component.getClientId(context);
    if (ppc.isPartialTarget(clientId))
      return false;

    return true;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

    boolean             needsQuoting,
    Object              id,
    boolean             useScript
    ) throws IOException
  {
    PartialPageContext pContext = arc.getPartialPageContext();

    // cannot use t() in MarlinCore.js on a partial rendering pass
    // just render the icon.
    if (!useScript || (pContext != null))
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

            // If the navigation bar that we are currently rendering
            // is included in a partial page response, add the icon
            // id to the list of partial targets.
            // =-=AEW Not sure this is still necessary
            PartialPageContext pprContext = arc.getPartialPageContext();
            if ((pprContext != null) &&
                pprContext.isInsidePartialTarget())
            {
              pprContext.addRenderedPartialTarget(iconID);
            }
          }
          else
          {
            // not in PPR mode, so just render the td (and id if not in a table)
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

  {
    FacesContext fContext = __getFacesContext();

    RenderingContext afContext = RenderingContext.getCurrentInstance();

    PartialPageContext pContext = null;

    if (afContext != null)
      pContext = afContext.getPartialPageContext();

    // find the nearest ancestor that generates html markup:
    newTarget = _getNearestPPRTarget(newTarget);
    String clientId = newTarget.getClientId(fContext);

    _LOG.finer("Adding partial target: {0}", newTarget);

    if (pContext != null)
    {
      pContext.addPartialTarget(clientId);
    }
    else
    {
      // If we haven't built the partial context yet, maintain a list of the
      // target IDs that have requested partial update.
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

  {
    // Don't bother if PPR isn't even supported
    if (!CoreRendererUtils.supportsPartialRendering(this))
      return;

    PartialPageContext partialPageContext =
      PartialPageUtils.createPartialPageContext(fContext,
                                                context);

    _pprContext = partialPageContext;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.PartialPageContext

      rowKeyManager = ((UIXCollection) component).getClientRowKeyManager();
   
    Set<Object> rowKeys = null;
    String tablePrefix = clientId + NamingContainer.SEPARATOR_CHAR;
    // Search for any PPR targets that start with "<tableClientId>:"
    PartialPageContext ppc = arc.getPartialPageContext();
    Iterator<String> targets = ppc.getPartialTargets();
    while (targets.hasNext())
    {
      String target = targets.next();
      if (target == null)
        continue;
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.