Examples of Form


Examples of org.sgx.yuigwt.yuigallery.form.Form

    FormField checkbox1 = Y.newCheckboxField(FormFieldConfig.create().
      name("myCheckbox").value("check").label("Do you like sports?"));
   
    Window.alert(Y.FormField().INVALID_DATE_MESSAGE()+" - "+checkbox1.label());
   
    Form form1 = Y.newForm(FormConfig.create().method("post").
      action("/test.php?action=submit").
      inlineValidation(true).
      children(

        checkbox1,
       
        FormFieldConfig.create("text").name("input1").label("Email input").validator("email"),
       
        FormFieldConfig.create("SelectField").label("Radio Choices").name("choiceinput").choices(
          FormFieldConfig.create().label("Choice A").value("A"),
          FormFieldConfig.create().label("Choice B").value("B")
        ),
       
        FormFieldConfig.create("SubmitButton").value("submit")
       
    ));
   
    form1.render(parent);
   
    //OK, now just use independent form widgets
   
//    panel1 = parent.append("<span></span>");
  }
View Full Code Here

Examples of org.simpleframework.http.Form

     
      while(!selector.isReady()) {
         body.collect(selector);
      }  
      Request request = new RequestEntity(body, null);
      Form form = request.getForm();
      List<Part> list = form.getParts();     
     
      assertEquals(form.get("a"), "b");
      assertEquals(form.get("c"), "d");
      assertEquals(form.get("e"), "f");
      assertEquals(form.get("g"), "h");
      assertEquals(form.getAll("a").size(), 2);
      assertEquals(form.getAll("a").get(0), "b");
      assertEquals(form.getAll("a").get(1), "1");       
      assertEquals(request.getTarget(), "/index.html?a=b&c=d&e=f&g=h&a=1");
      assertEquals(request.getMethod(), "POST");
      assertEquals(request.getMajor(), 1);
      assertEquals(request.getMinor(), 0);
      assertEquals(request.getContentType().getPrimary(), "multipart");
View Full Code Here

Examples of org.springframework.richclient.form.Form

    @Override
    protected JComponent createControl() {
        @SuppressWarnings("unchecked")
        PoolDescriptor<Event> tableDescriptor = (PoolDescriptor<Event>) getDescriptor();
        JPanel panel = new JPanel(new BorderLayout());
        Form mdForm = createForm(tableDescriptor.getDao(), Helper.convert(String.class,
                tableDescriptor.getObjectDescriptor().getUiProperties(UiShow.OVERVIEW)));
        panel.add(mdForm.getControl(), BorderLayout.CENTER);
        return panel;
    }
View Full Code Here

Examples of org.stjs.javascript.dom.Form

public class HelloWorld {

  public static void main(String[] args) {
    window.onload = new Callback1<DOMEvent>() {
      public void $invoke(DOMEvent ev) {
        Form form = window.document.forms.$get(0);
        Element button = form.elements.$get("say");
        final Input text = form.elements.$get("to");
        button.onclick = new Function1<DOMEvent, Boolean>() {
          public Boolean $invoke(DOMEvent ev) {
            alert("Hello me to " + text.value);
View Full Code Here

Examples of org.stringtree.http.Form

        baseURL = "http://localhost:" + server.getPort() + "/";
        client = new HTTPClient();
    }
   
    public void testPut() throws IOException {
        Form form = new Form();
        form.put("first", "primary");
        form.put("second", "secondary");
        Document result = client.post(baseURL + "action", form);
        assertEquals("200", result.getHeader(HTTPClient.HTTP_RESPONSE_CODE));
        assertEquals("action(primary,secondary)", result.getContentAsString());
    }
View Full Code Here

Examples of org.uengine.ui.tree.model.Form

  public List<Form> findAllFormVersions(int defId) {
    String sql = "SELECT defverid, ver FROM bpm_procdefver WHERE defid=? AND isdeleted=0";
    return this.jdbcTemplate.query(sql, new Object[] { defId },
        new RowMapper() {
          public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
            Form form = new Form();
            form.setDefVerId(rs.getInt("defVerId"));
            form.setVer(rs.getString("ver"));
            return form;
          }
        });
  }
View Full Code Here

Examples of pivot.wtk.Form

    @Override
    public void install(Component component) {
        super.install(component);

        Form form = (Form)component;
        form.getFormListeners().add(this);
        form.getFormAttributeListeners().add(this);

        Form.SectionSequence sections = form.getSections();
        for (int i = 0, n = sections.getLength(); i < n; i++) {
            insertSection(sections.get(i), i);
        }
    }
View Full Code Here

Examples of railo.runtime.type.scope.Form

   * @return return SQL String for insert
     * @throws PageException
     */
    private SQL createSQL(Struct meta) throws PageException {
        String[] fields=null;
        Form form = pageContext.formScope();
        if(formfields!=null) fields=ListUtil.toStringArray(ListUtil.listToArrayRemoveEmpty(formfields,','));
        else fields=CollectionUtil.keysAsString(pageContext.formScope());
       
        StringBuffer names=new StringBuffer();
        StringBuffer values=new StringBuffer();
        ArrayList items=new ArrayList();
        String field;
        for(int i=0;i<fields.length;i++) {
            field = StringUtil.trim(fields[i],null);
            if(StringUtil.startsWithIgnoreCase(field, "form."))
              field=field.substring(5);
           
            if(!field.equalsIgnoreCase("fieldnames")) {
                if(names.length()>0) {
                    names.append(',');
                    values.append(',');
                }
                names.append(field);
                values.append('?');
                ColumnInfo ci=(ColumnInfo) meta.get(field,null);
                if(ci!=null)items.add(new SQLItemImpl(form.get(field,null),ci.getType()));
                else items.add(new SQLItemImpl(form.get(field,null)));
            }
        }
        if(items.size()==0) return null;
       
        StringBuffer sql=new StringBuffer();
View Full Code Here

Examples of wicket.markup.html.form.Form

      }

      this.listeClubsLine.add(new ClubLine(club.getNomComplet(), etat, club));
    }

    final Form form = new Form("clubForm")
    {

      /**
       *
       */
      private static final long serialVersionUID = 3163017677464598472L;

      /*
       * (non-Javadoc)
       *
       * @see wicket.markup.html.form.Form#onSubmit()
       */
      @Override
      protected void onSubmit()
      {
        AffiliationsClubs affClubs = ListClubsPanel.this.affClubs;
       
        for (ClubLine line : ListClubsPanel.this.listeClubsLine)
        {
          //Si on veut ajouter le club a a saison
          if (line.getEtat())
          {
            try
            {
              affClubs.createAffiliationClub(ListClubsPanel.this.saison, line.getClub());
              super.error(String.valueOf(affClubs.size())+"Ajouté..."+line.getNomComplet());
            }
            catch (ActionException e)
            {
              throw new SystemeException(e);
            }
          }
          //Si on veut supprimer le club de la saison.
          else       
          {
            try
            {
              affClubs.RemoveAffiliationClub(ListClubsPanel.this.saison, line.getClub());
            }
            catch (ActionException e)
            {
              throw new SystemeException(e);
            }
          }
        }
        super.onSubmit();
      }

    };

    form.add(new ListClubsListView("ListeClubs", this.listeClubsLine));
    Map<Parameters, Object> params = new HashMap<Parameters, Object>();
    params = new HashMap<Parameters, Object>();
    params.put(Parameters.SELECTED_ITEM, this.saison);
    params.put(Parameters.IS_NEW, false);

    form.add(HomePage.link("retour", GestionEvenementsPanel.class, params));
    form.add(new FeedbackPanel("feedback"));
    this.add(form);
  }
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.