Examples of ValueBinding


Examples of javax.faces.el.ValueBinding

        if (this.identifierColumns == null)
        {
            this.identifierColumns = (String)this.getAttributes().get(IDENTIFIER_COLUMNS);
            if (this.identifierColumns == null)
            {
                final ValueBinding binding = this.getValueBinding(IDENTIFIER_COLUMNS);
                this.identifierColumns =
                    binding == null ? null : ObjectUtils.toString(binding.getValue(getFacesContext()));
            }
        }
        return this.identifierColumns;
    }
View Full Code Here

Examples of javax.faces.el.ValueBinding

    protected Class getComponentType(
        final FacesContext context,
        final UIComponent component)
    {
        Class type = null;
        final ValueBinding binding = component.getValueBinding("value");
        if (binding != null)
        {
            type = binding.getType(context);
        }
        return type;
    }
View Full Code Here

Examples of javax.faces.el.ValueBinding

    protected Object getComponentValue(
        final FacesContext context,
        final UIComponent component)
    {
        Object value = null;
        final ValueBinding binding = component.getValueBinding("value");
        if (binding != null)
        {
            value = binding.getValue(context);
        }
        return value;
    }
View Full Code Here

Examples of javax.faces.el.ValueBinding

        if (value != null)
        {
            if (isValueReference(value))
            {
                ValueBinding binding = createValueBinding(value);
                command.setValueBinding(
                    "value",
                    binding);
            }
            else
            {
                command.setValue(value);
            }
        }
        if (accesskey != null)
        {
            if (isValueReference(accesskey))
            {
                ValueBinding binding = createValueBinding(accesskey);
                command.setValueBinding(
                    "accesskey",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "accesskey",
                    accesskey);
            }
        }
        if (dir != null)
        {
            if (isValueReference(dir))
            {
                ValueBinding binding = createValueBinding(dir);
                command.setValueBinding(
                    "dir",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "dir",
                    dir);
            }
        }
        if (lang != null)
        {
            if (isValueReference(lang))
            {
                ValueBinding binding = createValueBinding(lang);
                command.setValueBinding(
                    "lang",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "lang",
                    lang);
            }
        }
        if (tabindex != null)
        {
            if (isValueReference(tabindex))
            {
                ValueBinding binding = createValueBinding(tabindex);
                command.setValueBinding(
                    "tabindex",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "tabindex",
                    tabindex);
            }
        }
        if (title != null)
        {
            if (isValueReference(title))
            {
                ValueBinding binding = createValueBinding(title);
                command.setValueBinding(
                    "title",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "title",
                    title);
            }
        }
        if (style != null)
        {
            if (isValueReference(style))
            {
                ValueBinding binding = createValueBinding(style);
                command.setValueBinding(
                    "style",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "style",
                    style);
            }
        }
        if (styleClass != null)
        {
            if (isValueReference(styleClass))
            {
                ValueBinding binding = createValueBinding(styleClass);
                command.setValueBinding(
                    "styleClass",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "styleClass",
                    styleClass);
            }
        }
        if (absolute != null)
        {
            if (isValueReference(absolute))
            {
                ValueBinding binding = createValueBinding(absolute);
                command.setValueBinding(
                    "absolute",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "absolute",
                    absolute);
            }
        }
        if (actionClose != null)
        {
            if (isValueReference(actionClose))
            {
                final MethodBinding binding = this.createMethodBinding(
                        actionClose,
                        new Class[0]);
                command.setActionClose(binding);
            }
            else
            {
                throw new IllegalStateException("Invalid actionClose." + actionClose);
            }
        }
        if (actionOpen != null)
        {
            if (isValueReference(actionOpen))
            {
                final MethodBinding binding = this.createMethodBinding(
                        actionOpen,
                        new Class[0]);
                command.setActionOpen(binding);
            }
            else
            {
                throw new IllegalStateException("Invalid actionOpen." + actionOpen);
            }
        }
        if (center != null)
        {
            if (isValueReference(center))
            {
                ValueBinding binding = createValueBinding(center);
                command.setValueBinding(
                    "center",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "center",
                    center);
            }
        }
        if (immediate != null)
        {
            if (isValueReference(immediate))
            {
                ValueBinding binding = createValueBinding(immediate);
                command.setValueBinding(
                    "immediate",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "immediate",
                    immediate);
            }
        }
        if (height != null)
        {
            if (isValueReference(height))
            {
                ValueBinding binding = createValueBinding(height);
                command.setValueBinding(
                    "height",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "height",
                    height);
            }
        }
        if (width != null)
        {
            if (isValueReference(width))
            {
                ValueBinding binding = createValueBinding(width);
                command.setValueBinding(
                    "width",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "width",
                    width);
            }
        }
        if (mouseHorizPos != null)
        {
            if (isValueReference(mouseHorizPos))
            {
                ValueBinding binding = createValueBinding(mouseHorizPos);
                command.setValueBinding(
                    "mouseHorizPos",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "mouseHorizPos",
                    mouseHorizPos);
            }
        }
        if (mouseVertPos != null)
        {
            if (isValueReference(mouseVertPos))
            {
                ValueBinding binding = createValueBinding(mouseVertPos);
                command.setValueBinding(
                    "mouseVertPos",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "mouseVertPos",
                    mouseVertPos);
            }
        }
        if (styleClassFrame != null)
        {
            if (isValueReference(styleClassFrame))
            {
                ValueBinding binding = createValueBinding(styleClassFrame);
                command.setValueBinding(
                    "styleClassFrame",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "styleClassFrame",
                    styleClassFrame);
            }
        }
        if (styleFrame != null)
        {
            if (isValueReference(styleFrame))
            {
                ValueBinding binding = createValueBinding(styleFrame);
                command.setValueBinding(
                    "styleFrame",
                    binding);
            }
            else
            {
                command.getAttributes().put(
                    "styleFrame",
                    styleFrame);
            }
        }
        if (scrolling != null)
        {
            if (isValueReference(scrolling))
            {
                ValueBinding binding = createValueBinding(scrolling);
                command.setValueBinding(
                    "scrolling",
                    binding);
            }
            else
View Full Code Here

Examples of javax.faces.el.ValueBinding

     */
    public Object getValue()
    {
        if (this.value == null)
        {
            final ValueBinding binding = this.getValueBinding(VALUE_ATTRIBUTE);
            if (binding != null)
            {
                this.value = binding.getValue(this.getFacesContext());
            }
        }
        return this.value;
    }
View Full Code Here

Examples of javax.faces.el.ValueBinding

     */
    public String getFileName()
    {
        if (this.fileName == null)
        {
            final ValueBinding binding = this.getValueBinding(FILE_NAME_ATTRIBUTE);
            if (binding != null)
            {
                this.fileName = (String)binding.getValue(this.getFacesContext());
            }
        }
        return this.fileName;
    }
View Full Code Here

Examples of javax.faces.el.ValueBinding

     */
    public String getContentType()
    {
        if (this.contentType == null)
        {
            final ValueBinding binding = this.getValueBinding(CONTENT_TYPE_ATTRIBUTE);
            if (binding != null)
            {
                this.contentType = (String)binding.getValue(this.getFacesContext());
            }

            // - if the content type is still null, lets guess
            if (this.contentType == null)
            {
View Full Code Here

Examples of javax.faces.el.ValueBinding

     */
    public boolean isPrompt()
    {
        if (this.prompt == null)
        {
            final ValueBinding binding = this.getValueBinding(CONTENT_TYPE_ATTRIBUTE);
            if (binding != null)
            {
                this.prompt = (Boolean)binding.getValue(this.getFacesContext());
            }
        }
        return this.prompt != null ? this.prompt.booleanValue() : false;
    }
View Full Code Here

Examples of javax.faces.el.ValueBinding

        {
            if (UIComponentTag.isValueReference(this.client))
            {
                final FacesContext context = FacesContext.getCurrentInstance();
                final Application application = context.getApplication();
                final ValueBinding binding = application.createValueBinding(attributeValue);
                component.setValueBinding(
                    attributeName,
                    binding);
            }
            else
View Full Code Here

Examples of javax.faces.el.ValueBinding

  }
 
   
  public java.lang.String getMenu(){
    java.lang.String value = null;
    ValueBinding vb = getValueBinding("menu");
       if (vb != null) {
      return (java.lang.String)(vb.getValue(getFacesContext()));
       }
    else {
      value = this.menu;
    }
    return value;
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.