Examples of valueInComponent()


Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   * @return retrieved value or <code>null</code>
   */
  public static Object valueForBinding(String name, NSDictionary<String, WOAssociation> associations, WOComponent component) {
    WOAssociation association = bindingNamed(name, associations);
    if (association != null) {
      return association.valueInComponent(component);
    }
    return null;
  }
 
  /**
 
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   * @return retrieved string value or <code>null</code>
   */
  public static String stringValueForBinding(String name, NSDictionary<String, WOAssociation> associations, WOComponent component) {
    WOAssociation association = bindingNamed(name, associations);
    if (association != null) {
      return (String) association.valueInComponent(component);
    }
    return null;
  }
 
  /**
 
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   * @return retrieved int value or default value
   */
  public static int integerValueForBinding(String name, int defaultValue, NSDictionary<String, WOAssociation> associations, WOComponent component) {
    WOAssociation association = bindingNamed(name, associations);
    if (association != null) {
      Object value = association.valueInComponent(component);
      return ERXValueUtilities.intValueWithDefault(value, defaultValue);
    }
    return defaultValue;
  }
 
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   * @return retrieved array value or default value
   */
  public static <T> NSArray<T> arrayValueForBinding(String name, NSArray<T> defaultValue, NSDictionary<String, WOAssociation> associations, WOComponent component) {
    WOAssociation association = bindingNamed(name, associations);
    if (association != null) {
      Object value = association.valueInComponent(component);
      return ERXValueUtilities.arrayValueWithDefault(value, defaultValue);
    }
    return defaultValue;
  }

View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

    public WOActionResults invokeAction(WORequest worequest, WOContext wocontext) {
        WOComponent component = wocontext.component();
      if (!booleanValueForBinding("ajax", false, component)) {
          WOAssociation action = associations().objectForKey("action");
          if(action != null && wocontext.elementID().equals(wocontext.senderID())) {
              return (WOActionResults) action.valueInComponent(component);
          }
      }
        return super.invokeAction(worequest, wocontext);
    }
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

        WOComponent component = context.component();

        WOResponse response = null;
        WOAssociation action = associations().objectForKey("action");
        if(action != null) {
            action.valueInComponent(component);
        }

      if (booleanValueForBinding("ajax", false, component) && hasChildrenElements()) {
      response = AjaxUtils.createResponse(request, context);
      AjaxUtils.setPageReplacementCacheKey(context, _containerID(context));
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

        super(name, associations, woelement);
        WOAssociation assoc = associations.objectForKey("case");
        if(!assoc.isValueConstant()) {
            throw new IllegalStateException("You must bind 'case' to a constant value");
        }
        _value = assoc.valueInComponent(null);
        _children = woelement;
    }
   
    public Object caseValue() {
        return _value;
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

        onClickBuffer.append("queue:'end', afterFinish: function() {");
      }

      String actionUrl = null;
      if (directActionNameAssociation != null) {
        actionUrl = context._directActionURL((String) directActionNameAssociation.valueInComponent(component), ERXComponentUtilities.queryParametersInComponent(associations(), component), ERXRequest.isRequestSecure(context.request()), 0, false).replaceAll("&amp;", "&");
      }
      else {
        actionUrl = AjaxUtils.ajaxComponentActionUrl(context);
      }
     
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

  public void appendToResponse(WOResponse response, WOContext context) {
    response.appendContentCharacter('{');
    NSMutableDictionary options = _bindings;
    WOAssociation optionsBinding = (WOAssociation) _bindings.objectForKey("options");
    if (optionsBinding != null) {
      NSDictionary passedInOptions = (NSDictionary) optionsBinding.valueInComponent(context.component());
      if (passedInOptions != null) {
        options = passedInOptions.mutableClone();
        options.addEntriesFromDictionary(_bindings);
      }
    }
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

        if (!"options".equals(bindingName)) {
          Object bindingValue = options.objectForKey(bindingName);
        // This is needed for the double step to resolve the value for ^ notation
          if (bindingValue instanceof WOAssociation) {
            WOAssociation association = (WOAssociation) bindingValue;
            bindingValue = association.valueInComponent(component);
          }
          if (bindingValue != null) {
            if (hasPreviousOptions) {
              stringBuffer.append(", ");
            }
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.