Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.TextArea


                    return "space_form.error.prefixCode.exists";
                }               
            });           
            add(prefixCode);
            // description =====================================================
            add(new TextArea("space.description"));
            // guest allowed ===================================================
            add(new CheckBox("space.guestAllowed"));
            // hide copy from option if edit ===================================
            WebMarkupContainer hide = new WebMarkupContainer("hide");           
            if(space.getId() > 0) {
View Full Code Here


        ListView listView = new ListView("cells", rowCells) {
            protected void populateItem(ListItem item) {
                Column column = excelFile.getColumns().get(item.getIndex());
                item.add(new Label("heading", column.getLabel()));
                final Cell cell = (Cell) item.getModelObject();
                TextArea textArea = new TextArea("value");
                textArea.setModel(new IModel() {
                    public Object getObject() {
                        return cell.getValue();
                    }
                    public void setObject(Object o) {
                        cell.setValue(o);
                    }
                    public void detach() {
                    }                   
                });
                textArea.setLabel(new Model(column.getLabel()));
                textArea.add(new ErrorHighlighter());
                Object value = cell.getValue();
                if (value != null) {
                    if (value instanceof Date) {
                        textArea.setType(Date.class);
                    } else if (value instanceof Double) {
                        textArea.setType(Double.class);
                    }
                }
                item.add(textArea);
                if (column.getColumnHeading() != null) {
                    item.add(CLASS_SELECTED);
                    textArea.setEnabled(false);
                }
            }
        };
       
        listView.setReuseItems(true);
View Full Code Here

  private void createComponents()
  {
    this.add(new Label("id"));
    this.add(new RequiredTextField("titreFrancais"));
    this.add(new RequiredTextField("titreAnglais"));
    this.add(new TextArea("descriptionFrancais"));
    this.add(new TextArea("descriptionAnglais"));
    this.add(new DateField("beginDate"));
    this.add(new DateField("endDate"));
    this.add(new CheckBox("ispublic"));
    this.add(new CheckBox("isprivate"));
    this.add(new CheckBox("active"));
View Full Code Here

    add(new TextField("indexColonneCode").setRequired(true).setType(
        Integer.class));
    add(new TextField("indexColonneNumero").setRequired(true).setType(
        Integer.class));
    add(new TextField("delimiterChar").setRequired(true));
    add(new TextArea("commentaires"));
    add(new Label("importFile.name"));

    this.add(viewFileLink = new ResourceLink("viewFile", new WebResource()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  private void createComponents()
  {
    add(new TextField("code").setRequired(true));
    add(new TextField("nom").setRequired(true));
    add(new TextArea("description"));
    add(new DateField("dateDebut").setRequired(true));
    add(new DateField("dateFin"));
  }
View Full Code Here

  {
    add(new TextField("id").setEnabled(false));
    add(new RequiredTextField("nom"));
    add(new RequiredTextField("annee"));
    add(new CheckBox("active"));
    add(new TextArea("texteFraisAdminFr"));
    add(new TextArea("texteFraisAdminEn"));
    add(new TextArea("conditionARespecterFr"));
    add(new TextArea("conditionARespecterEn"));
    add(new DropDownChoice("secteur", secteurService.list(),
        new SecteurChoiceRenderer()));
    add(new Label("image.name"));

    add(viewImageLink = new PageLink("viewImage", new IPageLink()
View Full Code Here

    form.add(new CurrencyLabel("escompte", new PropertyModel(cart,
        "escompte")));
    form.add(new CheckBox("acceptedConditions", new PropertyModel(this,
        "acceptedConditions")));

    form.add(new TextArea("conditions", new Model(ResourceBundle.getBundle(
        "org/xrace/XRaceApplication").getString("Global.conditions"))));
    form.add((new Label("policyTitle", new ResourceModel(
        "Global.policyTitle"))));
    form.add((new MultiLineLabel("policy", new ResourceModel(
        "Global.policy"))));
View Full Code Here

  {
    final Form form = new Form("gestionArticlesForm",
        new CompoundPropertyModel(choix));

    form.add(new RequiredTextField("description"));
    form.add(new TextArea("detail"));
    form.add(new RequiredTextField("prix"));
    form.add(new CheckBox("textField"));
    form.add(new TextField("textFieldName"));
    form.add(new CheckBox("inactif"));
View Full Code Here

  private void createComponents()
  {
    add(new Label("saison.nom"));
    add(new Label("date"));
    add(new Label("compte.personne.nomPrenom"));
    add(new TextArea("commentaires"));
    add(new Label("importFile.name"));

    this.add(viewFileLink = new ResourceLink("viewFile", new WebResource()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

*/
public class ContactForm extends Form<ContactForm.ContactFormData> {
  public ContactForm( @Nonnull @NonNls String id ) {
    super( id, new CompoundPropertyModel<ContactFormData>( new ContactFormData() ) );
    add( new TextField( "subject" ) );
    add( new TextArea( "text" ) );
    add( new TextField( "replyTo" ) );
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.TextArea

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.