Package org.apache.myfaces.trinidadinternal.ui

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


    if (styleClass != null)
    {
      XhtmlRenderer.renderStyleClass(context, arc, styleClass);
    }

    UIXRenderingContext rCtx = getRenderingContext(context, component);
    ShowOneUtils.renderGenericAttributes(rCtx, component, out);

    out.startElement("tr", component);

    // =-= rbaranwa push some of the below into functions
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

      // 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

    UIComponent component = node.getUIComponent();
    if (component != null)
      return component;

    // Else look up its ancestors.
    UIXRenderingContext rContext = context.getParentContext();
    while(rContext != null)
    {
      component = rContext.getAncestorNode(0).getUIComponent();
      if (component != null)
        return component;
      rContext  = rContext.getParentContext();
    }
     return null;
  }
View Full Code Here

    context.getResponseWriter().flush();

    // We need to keep pushing the RenderingContext so that
    // we properly handle composite rendering.
    FacesContext fContext = context.getFacesContext();
    UIXRenderingContext oldContext =
        UINodeRendererBase.__setRenderingContext(fContext, context);

    _renderComponent(fContext, _component);

    UINodeRendererBase.__restoreRenderingContext(fContext, oldContext);
View Full Code Here

   * the characters in this string.
   */
  public static String hyphenate(UIImplicitObject uix,
                                 String text, String breakChars)
  {
    UIXRenderingContext rc = uix.getRenderingContext();
    TrinidadAgent.Application agentApp = rc.getAgent().getAgentApplication();


    // bug 3364275
    // possible characters to use to indicate to the browser where it is safe
    // to break a line:
View Full Code Here

  {
    // Make sure we have a name
    if (name != null)
    {
      // Get the Icon from the Skin
      UIXRenderingContext context = uix.getRenderingContext();
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      Skin skin = context.getSkin();
      Icon icon = skin.getIcon(name);

      Object uri = icon.getImageURI(fContext, arc);

      if (uri != 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

    if (styleClass != null)
    {
      XhtmlRenderer.renderStyleClass(context, arc, styleClass);
    }

    UIXRenderingContext rCtx = getRenderingContext(context, component);
    ShowOneUtils.renderGenericAttributes(rCtx, component, out);

    out.startElement("tr", component);

    // =-= rbaranwa push some of the below into functions
View Full Code Here

  /**
   * Gets the current data on the rendering context.
   */
  public final Object getCurrent()
  {
    UIXRenderingContext context = getRenderingContext();
    DataObject currentData = context.getCurrentDataObject();
    return adapt(currentData);
  }
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.