Examples of Param


Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Param

            if (attributes.containsKey(REVERSE_PRIMARY_KEY))
            {
               reverseKey = attributes.get(REVERSE_PRIMARY_KEY);
            }

            Param param = new Param();
            param.putAttribute("name", "id");
            param.putAttribute(
                     "value",
                     StaticFacesUtils.wrapExpression(StaticFacesUtils.unwrapExpression(link.getValue()) + StringUtils.SEPARATOR_DOT_CHAR
                              + reverseKey));
            link.getChildren().add(param);
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Param

                  break;
               }
            }
         }

         Param param = new Param();
         param.putAttribute("name", "id");
         param.putAttribute(
                  "value",
                  StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR
                           + primaryKeyName));
         link.getChildren().add(param);
         link.getChildren().add(column.getChildren().remove(1));
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Param

            if (attributes.containsKey(REVERSE_PRIMARY_KEY))
            {
               reverseKey = attributes.get(REVERSE_PRIMARY_KEY);
            }

            Param param = new Param();
            param.putAttribute("name", "id");
            param.putAttribute(
                     "value",
                     StaticFacesUtils.wrapExpression(StaticFacesUtils.unwrapExpression(link.getValue())
                              + StringUtils.SEPARATOR_DOT_CHAR
                              + reverseKey));
            link.getChildren().add(param);
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Param

                  break;
               }
            }
         }

         Param param = new Param();
         param.putAttribute("name", "id");
         param.putAttribute(
                  "value",
                  StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR
                           + primaryKeyName));
         link.getChildren().add(param);
         link.getChildren().add(column.getChildren().remove(1));
View Full Code Here

Examples of org.milyn.scribe.annotation.Param

      for(final Annotation annotation : parameterAnnotations[i]) {

        if(Param.class.equals(annotation.annotationType())) {
          namedParameters = true;

          final Param param = (Param) annotation;

          final String name = param.value().trim();

          if(name.length() == 0) {
            throw new RuntimeException("Illegal empty parameter value encounterd on parameter " + i
                + " of method '" + method + "' from class '" + method.getDeclaringClass().getName() +"'.");
          }

          if(parameterPositions == null) {
            parameterPositions = new HashMap<String, Integer>();
          }

          parameterPositions.put(param.value(), i);

          break;
        }

      }
View Full Code Here

Examples of org.mojavemvc.annotations.Param

    @SuppressWarnings("serial")
    private class SomeUserDefinedType implements Serializable {
    }

    private Param createParam(final String val) {
        return new Param() {

            @Override
            public Class<? extends Annotation> annotationType() {
                return Param.class;
            }
View Full Code Here

Examples of org.nutz.mvc.annotation.Param

    this.converters = new ParamConvertor[fields.length];

    for (int i = 0; i < fields.length; i++) {
      Field f = fields[i];
      this.injs[i] = mirror.getInjecting(f.getName());
      Param param = f.getAnnotation(Param.class);
      String nm = null == param ? f.getName() : param.value();
      this.names[i] = prefix + nm;
      this.converters[i] = Params.makeParamConvertor(f.getType());
    }
  }
View Full Code Here

Examples of org.nutz.mvc.annotation.Param

    injs = new ParamInjector[argTypes.length];
    Annotation[][] annss = method.getParameterAnnotations();
    Type[] types = method.getGenericParameterTypes();
    for (int i = 0; i < annss.length; i++) {
      Annotation[] anns = annss[i];
      Param param = null;
      Attr attr = null;
      IocObj iocObj = null;

      // find @Param & @Attr & @IocObj in current annotations
      for (int x = 0; x < anns.length; x++)
View Full Code Here

Examples of org.omnifaces.cdi.Param

  @Produces
  @Param
  public <V> ParamValue<V> produce(InjectionPoint injectionPoint) {

    // @Param is the annotation on the injection point that holds all data for this request parameter
    Param requestParameter = getQualifier(injectionPoint, Param.class);

    FacesContext context = FacesContext.getCurrentInstance();
    UIComponent component = context.getViewRoot();

    String label = getLabel(requestParameter, injectionPoint);

    // TODO: Save/restore existing potentially existing label?
    component.getAttributes().put("label", label);

    // Get raw submitted value from the request
    String submittedValue = getRequestParameter(context, getName(requestParameter, injectionPoint));
    Object convertedValue = null;
    boolean valid = true;

    try {

      // Convert the submitted value

      Converter converter = getConverter(requestParameter, getTargetType(injectionPoint));
      if (converter != null) {
        convertedValue = converter.getAsObject(context, component, submittedValue);
      } else {
        convertedValue = submittedValue;
      }

      // Check for required

      if (requestParameter.required() && isEmpty(convertedValue)) {
        addRequiredMessage(context, component, label, submittedValue, getRequiredMessage(requestParameter));
      }

      // Validate the converted value
View Full Code Here

Examples of org.openbp.core.model.item.process.Param

        {
          ParamConnection paramConnection = (ParamConnection) next;

          DataLink link = paramConnection.getDataLink();

          Param sourceParam = link.getSourceParam();
          Param targetParam = link.getTargetParam();

          if (sourceParam instanceof NodeParam)
          {
            if (! copiedSourceNodes.contains(((NodeParam) sourceParam).getSocket().getNode()))
            {
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.