Package org.apache.myfaces.trinidadinternal.ui

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext


                          UIComponent component)
    throws IOException
  {
    if (!getRendersChildren())
    {
      UIXRenderingContext rContext = getRenderingContext(context, component);
      UINode node = createUINode(context, component);
      Renderer renderer = _getRenderer(rContext, node);
      assert(renderer instanceof PreAndPostRenderer);
      ((PreAndPostRenderer) renderer).prerender(rContext, node);
    }
View Full Code Here


  @Override
  public void encodeEnd(FacesContext context,
                        UIComponent component)
    throws IOException
  {
    UIXRenderingContext rContext = getRenderingContext(context, component);
    if (getRendersChildren())
    {
      createUINode(context, component).render(rContext);
    }
    else
View Full Code Here

   */
  public Object getValue(
    UIXRenderingContext context
    )
  {
    UIXRenderingContext parentContext = context.getParentContext();
   
    if (parentContext != null)
    {
      // Get the target value - using the ORIGINAL context,
      // not the parent context.
View Full Code Here

   */
  public Object getValue(
    UIXRenderingContext context
    )
  {
    UIXRenderingContext parentContext = context.getParentContext();

    if (parentContext != null)
    {
      UINode baseNode = parentContext.getAncestorNode(0);

      if (baseNode != null)
      {
        return baseNode.getAttributeValue(parentContext, _attrKey);
      }
View Full Code Here

   */
  public Object getValue(
    UIXRenderingContext context
    )
  {
    UIXRenderingContext parentContext = context.getParentContext();
   
    if (parentContext != null)
    {
      return parentContext.getAncestorNode(0);
    }
   
    return null;
  }
View Full Code Here

    {
      ContextPoppingUINode poppingNode =
                              (ContextPoppingUINode)context.getAncestorNode(0);
      DataObject poppingCurrentDataObject  = context.getCurrentDataObject();

      UIXRenderingContext poppedContext = context.getParentContext();

      UINode poppedNode = poppingNode.getPoppedNode(context);

      // push on the child's path information
      poppedContext.pushChild(poppedNode,
                              poppingNode.__getChildName(),
                              poppingNode.__getChildIndex());
      poppedContext.pushRenderedChild(poppedContext, poppedNode);

      DataObject poppedCurrentDataObject =
        poppedContext.setCurrentDataObject(poppingCurrentDataObject);

      try
      {
        poppedNode.render(poppedContext);
      }
      finally
      {
        poppedContext.setCurrentDataObject(poppedCurrentDataObject);
        poppedContext.popRenderedChild(poppedContext);
        poppedContext.popChild();
      }
    }
View Full Code Here

  @Override
  protected void writeAdditionalJS(FacesContext context,
                                   UIComponent component)
    throws IOException
  {
    UIXRenderingContext rCtx = getRenderingContext(context, component);
    String formName = RenderUtils.getFormId(context, component);

    boolean jsRendered =
      XhtmlLafRenderer.isPreviouslyRendered(rCtx,
        _SHOWONECHOICE_SETCHOICE_JS_RENDERED);
View Full Code Here

                                   UIComponent component,
                                   String disclosedChildId)
    throws IOException
  {
    // This renders the select controls alongwith javascript onchange handler.
    UIXRenderingContext rCtx =
      getRenderingContext(context, component);

    String compId = component.getClientId(context);

    ResponseWriter out = context.getResponseWriter();
View Full Code Here

                                     String disclosedChildId)
    throws IOException
  {
    String compId = component.getClientId(context);
    ResponseWriter out = context.getResponseWriter();
    UIXRenderingContext rCtx = getRenderingContext(context, component);

    out.startElement("td", component);
    out.writeAttribute("valign", "top", null);
    out.writeAttribute("nowrap", Boolean.TRUE, null);
View Full Code Here

    throws IOException
  {
    _LOG.finest("CorePanelRadioRenderer.renderRadioFacet: disclosedChildId: {0}", disclosedChildId);

    // This renders the select controls alongwith javascript onchange handler.
    UIXRenderingContext rCtx = getRenderingContext(context, component);

    String compId = component.getClientId(context);

    ResponseWriter out = context.getResponseWriter();
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

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.