Package org.apache.myfaces.trinidadinternal.ui

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


                                     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


  {
    _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

    throws IOException
  {
    if (!getRendersChildren())
    {
      UIXComponentUINode adapter = UIXComponentUINode.__getAdapter(component);
      UIXRenderingContext rContext = getRenderingContext(context, component);
      adapter.prerenderInternal(rContext, adapter);
    }
  }
View Full Code Here

  public void encodeEnd(FacesContext context,
                        UIComponent component)
    throws IOException
  {
    UIXComponentUINode adapter = UIXComponentUINode.__getAdapter(component);
    UIXRenderingContext rContext = getRenderingContext(context, component);

    if (getRendersChildren())
    {
      adapter.renderInternal(rContext, adapter);
    }
View Full Code Here

  static protected UIXRenderingContext getRenderingContext(
    FacesContext context,
    UIComponent  component,
    boolean      createIfNull) throws IOException
  {
    UIXRenderingContext rContext = __getRenderingContext(context);

    if (rContext == null && createIfNull)
    {
      FacesRenderingContext frContext =
        FacesRenderingContext.createRenderingContext(context);
View Full Code Here

    UIXRenderingContext rContext)
  {
    if (rContext == null)
      throw new NullPointerException();

    UIXRenderingContext oldContext = __getRenderingContext(fContext);
    if (oldContext == rContext)
      return null;

    fContext.getExternalContext().getRequestMap().put(_CONTEXT_KEY, rContext);
    return oldContext;
View Full Code Here

    TreeWalker       walker,
    Object           value,
    PathImpl         path,
    boolean          renderedOnly) throws IOException
  {
    UIXRenderingContext childContext =
      _getChildRenderingContext(context, ancestor);

    // Walk the indexed children
    int count = ancestor.getIndexedChildCount(context);
    for(int i = 0; i < count; i++)
View Full Code Here

      // rendering.  Jump up to the parent, and use the end of its Path.
      // Sadly, this isn't perfect - it only helps you if the <option>
      // is tops in the template/composite widget - but it helps out a lot.
      if (path.getElementCount() == 0)
      {
        UIXRenderingContext parent = context.getParentContext();
        if (parent == null)
          return -1;
        return _getChildIndex(parent);
      }
View Full Code Here

    UINode           node)
  {
    UIComponent component = node.getUIComponent();
    if (component == null)
    {
      UIXRenderingContext parentContext = context.getParentContext();
      if (parentContext != null)
      {
        UINode parentNode = parentContext.getAncestorNode(0);
        component = NodeUtils.getUIComponent(parentContext, parentNode);
      }
    }

    return component;
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

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.