Examples of Form


Examples of at.reppeitsolutions.formbuilder.model.Form

    @PostConstruct
    public void init() {
        formJpaController = new FormJpaController(utx, em);
        if (formid != null) {
            if(formid == -1) {
                form = new Form();
            } else {
                form = formJpaController.findForm(formid);
            }
        }
    }
View Full Code Here

Examples of br.com.caelum.seleniumdsl.Form

    Browser browser = new DefaultBrowser(selenium);
    browser.open("/");
    selenium.stop();

    Page currentPage = browser.currentPage();
    Form form = currentPage.form("id");
    Field field = form.field("fieldName");
  }
View Full Code Here

Examples of cn.com.annotations.Form

    public String content() throws AppException {
        TagWriter writer = null;
        try {
            writer = new TagWriter(new CharArrayWriter());

            Form form = parser.getForm();
            ContainHTMLElementTag topElement = null;
            if ((form != null && !(parser.getGroup() instanceof Group.DEFAULT) && !form.id().equals(Form.__DEFAULT_FORM_NAME)) || parser.getGroup() instanceof Group.DEFAULT) {

                // 生成form标签
                FormElementTag formElement = new FormElementTag();
                formElement.setAction(form.action());
                formElement.setEnctype(form.enctype());
                formElement.setMethod(form.method().name());
                formElement.setId(form.id());
                formElement.setCssClass(form.cssClass());
                topElement = formElement;
            } else {

                DivElementTag divElement = new DivElementTag(_TOP_CONTAINER);
                topElement = divElement;
View Full Code Here

Examples of com.adobe.acs.commons.forms.Form

                    }
                }
            }
        }

        return this.clean(new Form(formName, request.getResource().getPath(), map));
    }
View Full Code Here

Examples of com.alexnevsky.hotel.model.Form

      FormDAO formDAO = daoFactory.getFormDAO();

      Order order = null;
      order = orderDAO.find(orderId);

      Form form = null;
      form = formDAO.find(order.getFormId());

      logger.info("Admin '" + request.getSession().getAttribute(AttributesManager.PARAM_NAME_LOGIN)
          + "'. Delete '" + order + "'" + " and '" + form + "'" + ". RemoteAddr: " + request.getRemoteAddr());
View Full Code Here

Examples of com.alibaba.citrus.service.form.Form

                fc = null;
            }
        }

        public Object resolve() {
            Form form = formService.getForm();
            Collection<Group> groups = form.getGroups(groupName);

            boolean valid = isValidatedAndValid(form);

            if (fc == null) {
                Object result = null;

                try {
                    result = form.getTypeConverter().convertIfNecessary(groups, context.getTypeInfo().getRawType(),
                                                                        context.getExtraObject(MethodParameter.class));
                } catch (TypeMismatchException e) {
                    if (!isConverterQuiet(form)) {
                        throw e;
                    }

                    return null;
                }

                skipModuleExecutionIfNecessary(valid, result);
                return result;
            } else {
                skipModuleExecutionIfNecessary(valid, null);

                if (!valid) {
                    return null;
                }

                Object[] results = new Object[groups.size()];

                int i = 0;
                for (Group group : groups) {
                    Object object = newInstance(fc);
                    group.setProperties(object);
                    results[i++] = object;
                }

                try {
                    return form.getTypeConverter().convertIfNecessary(results, context.getTypeInfo().getRawType(),
                                                                      context.getExtraObject(MethodParameter.class));
                } catch (TypeMismatchException e) {
                    if (!isConverterQuiet(form)) {
                        throw e;
                    }
View Full Code Here

Examples of com.calclab.emite.xep.dataforms.Form

        }

        // This is not a extended search. Try to create a form
        // with returned fields
        final SearchFields fieldResults = processFieldsResults(session.getCurrentUserURI(), iq.getQuery(XmppNamespaces.SEARCH));
        final Form form = new Form(Form.Type.form);
        form.addInstruction(fieldResults.getInstructions());
        for (final String fieldName : fieldResults.getFieldNames()) {
          final Field field = new Field();
          field.setType(Field.Type.TEXT_SINGLE);
          field.setVar(fieldName);
          form.addField(field);
        }
        listener.onSuccess(form);
      }

      @Override
View Full Code Here

Examples of com.caucho.server.http.Form

    if (charEncoding == null)
      charEncoding = CharacterEncoding.getLocalEncoding();

    String javaEncoding = Encoding.getJavaName(charEncoding);

    Form formParser = new Form();
    HashMapImpl<String,String[]> form = new HashMapImpl<String,String[]>();

    try {
      formParser.parseQueryString(form, query, javaEncoding, true);
    } catch (java.io.IOException e) {
      log.log(Level.FINE, e.toString(), e);

      return false;
    }
View Full Code Here

Examples of com.caucho.server.http.Form

    HashMapImpl<String,String[]> form = new HashMapImpl<String,String[]>();

    form.putAll(getRequest().getParameterMap());
   
    Form formParser = Form.allocate();

    try {
      String queryString = _invocation.getQueryString();
      String oldQueryString = getRequest().getQueryString();
     
      if (queryString != null && ! queryString.equals(oldQueryString)) {
        formParser.parseQueryString(form, queryString, javaEncoding, false);
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of com.caucho.server.http.Form

    HashMapImpl<String,String[]> form = new HashMapImpl<String,String[]>();

    form.putAll(getRequest().getParameterMap());
   
    Form formParser = Form.allocate();

    try {
      String queryString = _invocation.getQueryString();
     
      if (queryString != null) {
        formParser.parseQueryString(form, queryString, javaEncoding, false);
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
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.