Package org.apache.myfaces.trinidadinternal.ui

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


    }

    @Override
    public Object get(Object key)
    {
      UIXRenderingContext context = getRenderingContext();
      Object value = selectValue(context, key);
      //ystem.out.println("key:"+key+" value:"+value);
      value = adapt(value);
      return value;
    }
View Full Code Here


    }

    @Override
    public Object put(Object key, Object value)
    {
      UIXRenderingContext context = getRenderingContext();
      Object old = selectValue(context, key);
      updateValue(context, key, value);
      return old;
    }
View Full Code Here

   * the characters in this string.
   */
  public static String hyphenate(UIImplicitObject uix,
                                 String text, String breakChars)
  {
    UIXRenderingContext rc = uix.getRenderingContext();
    int 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

    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

    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

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

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

      if (baseNode != null)
      {
        if (_childName != null)
        {
View Full Code Here

    UIXRenderingContext context
    )
  {
    if (context != null)
    {
      UIXRenderingContext parentContext = context.getParentContext();
     
      if (parentContext != null)
      {
        return parentContext.getAncestorNode(0);
      }
    }

    return null;
  }
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

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.