Examples of UIXRenderingContext


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

    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

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

  @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

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

                                   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);

    URLEncoder encoder = rCtx.getURLEncoder();
    ResponseWriter out = context.getResponseWriter();

    // draw table to contain the select UI control
    out.startElement("table", component);
    out.writeAttribute("id", compId + _CHOICE_TABLE_SUFFIX_ID_CONST, null);
View Full Code Here

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);

    out.startElement("select", component);
    out.writeAttribute("id", compId + _CHOICE_SELECT_SUFFIX_ID_CONST, null);
    out.writeAttribute("name", compId + _CHOICE_SELECT_SUFFIX_ID_CONST,null);

    XhtmlLafRenderer.renderStyleClassAttribute(rCtx, getFieldTextClass());

    // construct the javascript for submitting the form
    String onChangeJS = _getChoiceOnchangeJS(context,rCtx, component, compId);
    if (onChangeJS != null)
    {
      out.writeAttribute("onchange", onChangeJS, null);
    }

    URLEncoder encoder = rCtx.getURLEncoder();
    // Render options now.
    ListIterator<UIComponent> children = component.getChildren().listIterator();
    while (children.hasNext())
    {
      UIComponent child = children.next();
View Full Code Here

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

    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

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

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

    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

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

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

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

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

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