Package org.apache.myfaces.trinidadinternal.ui.collection

Examples of org.apache.myfaces.trinidadinternal.ui.collection.Parameter


    // Get the encoded names for our event parameters
    URLEncoder encoder = context.getURLEncoder();
    String eventKey  = encoder.encodeParameter(UIConstants.EVENT_PARAM);
    String sourceKey = encoder.encodeParameter(UIConstants.SOURCE_PARAM);

    Parameter eventParam = ActionUtils.buildParameter(context, node,
                                                      _eventBinding, _event,
                                                      eventKey);
    int numParams = 1;

    // If the parent element doesn't have a name or ID, there'll be no source
    Parameter sourceParam = null;
    if ((_sourceBinding != null) || (_source != null))
    {
      sourceParam = ActionUtils.buildParameter(context, node,
                                               _sourceBinding, _source,
                                               sourceKey);
View Full Code Here


    if ((parameters == null) || (parameters.length == 0))
      return;

    for (int i = 0; i < parameters.length; i++)
    {
      Parameter param = parameters[i];
      appendURLParameter(buffer, param.getKey(), param.getValue(context));
    }
  }
View Full Code Here

    // or
    //    'key1':'value1','key2':'value2',
    int length = 0;
    for (int i = 0; i < parameters.length; i++)
    {
      Parameter param = parameters[i];

      String value = param.getValue(context);
      // don't count the length if value is null, since we don't append
      // the parameter if value is null in appendJSParameter
      if (value != null)
      {
        length += value.length();
        length += param.getKey().length();
        // Make sure there is room for the & and the =
        // or the ' : and , chars
        length += 5;
      }
    }
View Full Code Here

      if (params != null)
      {
        map = new String[params.length * 2];
        for (int i = 0, j = 0; i < params.length; i++)
        {
          Parameter p = params[i];
          map[j++] = p.getKey();
          map[j++] = p.getValue(context);
        }
        return map;
      }
      else
      {
View Full Code Here

          if (kid instanceof UIParameter)
          {
            Object value = ((UIParameter)kid).getValue();
            if (value != null)
            {
              Parameter p = new Parameter();
              p.setKey(((UIParameter)kid).getName());
              p.setValue(value.toString());
              params.add(p);
            }
          }
        }

        if (_part != null)
        {
          Parameter p = new Parameter();
          p.setKey("part");
          p.setValue(_part);
          params.add(p);
        }

        Parameter [] paramArray = params.toArray(_sPARAMS_ARRAY);
        _fireAction.setParameters(paramArray);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.collection.Parameter

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.