Examples of Form


Examples of org.apache.commons.validator.Form

    {
        if (this.formId != null)
        {
            try
            {
                final Form validatorForm = getValidatorResources().getForm(
                    Locale.getDefault(),
                    this.formId);
                if (validatorForm != null)
                {
                    final Field field = this.getFormField(validatorForm, component.getId());
View Full Code Here

Examples of org.apache.commons.validator.Form

      assertNotNull(resources);
    } catch (CommonsValidatorException e) {
      fail();
    }

    Form f = resources.getForm(new Locale("EN"), "ValidateBean"); //$NON-NLS-1$ //$NON-NLS-2$
    assertNotNull(f);

  }
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.form.Form

        WebClient wc = createWebClient(address, new SamlFormOutInterceptor(),
                                       formProvider, true);
       
        wc.type(MediaType.APPLICATION_FORM_URLENCODED).accept(MediaType.APPLICATION_XML);
        try {
            Book book = wc.post(new Form().set("name", "CXF").set("id", 125),
                                Book.class);               
            assertEquals(125L, book.getId());
        } catch (WebApplicationException ex) {
            fail(ex.getMessage());
        } catch (ClientException ex) {
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.form.Form

        WebClient wc = createWebClientForExistingToken(address, new SamlFormOutInterceptor(),
                                       formProvider);
       
        wc.type(MediaType.APPLICATION_FORM_URLENCODED).accept(MediaType.APPLICATION_XML);
        try {
            Book book = wc.post(new Form().set("name", "CXF").set("id", 125),
                                Book.class);               
            assertEquals(125L, book.getId());
        } catch (WebApplicationException ex) {
            fail(ex.getMessage());
        } catch (ClientException ex) {
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.form.Form

    private static final Logger LOG =
        LogUtils.getL7dLogger(SamlFormOutInterceptor.class);
    private static final String SAML_ELEMENT = "SAMLToken";
   
    public void handleMessage(Message message) throws Fault {
        Form form = getRequestForm(message);
        if (form == null) {
            return;
        }
       
        try {
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.form.Form

        if (objs != null && objs.size() == 1) {
            Object obj = objs.get(0);
            if (obj instanceof Form) {
                return (Form)obj;
            } else if (obj instanceof MultivaluedMap) {
                return new Form((MultivaluedMap<String, String>)obj);
            }
        }
        return null;
    }
View Full Code Here

Examples of org.apache.ecs.html.Form

     * @return A ConcreteElement.
     * @throws Exception a generic exception.
     */
    public ConcreteElement doBuild(RunData data) throws Exception
    {
        Form form;
        form = new Form(
            new TurbineURI(data,
                           TurbineConstants.SCREEN_DEFAULT_DEFAULT,
                           TurbineConstants.ACTION_LOGOUT_DEFAULT,
                           true).getRelativeLink(),
            Form.POST).addElement(new Input("SUBMIT", "Logout", "Logout"));
View Full Code Here

Examples of org.apache.harmony.x.swing.text.html.form.Form

                    }
                }
            }
           
            void openForm(final AttributeSet attr) {
                currentForm = new Form(attr);
            }
View Full Code Here

Examples of org.apache.http.client.fluent.Form

  }

  public Object set4(String name, Object value, Boolean unset, Boolean sync)
    throws ClientProtocolException, IOException
  {
    Form form = Form.form().add("name", name)
      .add("sync", sync.toString())
      .add("session", this.session);
    if (!unset) {
      form.add("value", mapper.writeValueAsString(value));
    }
    String reply = Request.Post(urlBase + "/set")
      .addHeader("Authorization", auth).bodyForm(form.build())
      .execute().returnContent().asString();
    if (!reply.equals("ok")) {
      throw new RuntimeException(reply);
    }
    return value;
View Full Code Here

Examples of org.apache.isis.viewer.html.component.Form

        if (task.getError() != null) {
            content.add(context.getComponentFactory().createInlineBlock("error", task.getError(), null));
        }

        final Form form = context.getComponentFactory().createForm(task.getId(), name(), task.getStep(), task.numberOfSteps(), task.isEditing());
        final String[] parameterLabels = task.getNames();
        final String[] parameterDescriptions = task.getFieldDescriptions();
        final String[] errors = task.getErrors();
        final String[] entryText = task.getEntryText();
        final int[] noLines = task.getNoLines();
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.