Examples of AjaxSubmitButton


Examples of com.dodo.blog.ui.component.input.AjaxSubmitButton

        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.description" ), new TextBox( "description" ).setAutoFocus( true ) ) );
        fieldSet.add( new FormRow( localize( "label.code" ), new TextArea( "code" ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), PlaygroundList.class ) );
    }
View Full Code Here

Examples of com.dodo.blog.ui.component.input.AjaxSubmitButton

        FieldSet fieldSet = new FieldSet( localize( "title.categoryEdit" ) );
        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.name" ), new TextBox( "name" ).setAutoFocus( true ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), CategoryList.class ) );
    }
View Full Code Here

Examples of com.dodo.blog.ui.component.input.AjaxSubmitButton

        FieldSet fieldSet = new FieldSet( localize( "title.tagEdit" ) );
        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.name" ), new TextBox( "name" ).setAutoFocus( true ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), TagList.class ) );
    }
View Full Code Here

Examples of com.dodo.blog.ui.component.input.AjaxSubmitButton

        for ( int i = 1; i <= 5; i++ )
        {
            fieldSet.add( new FormRow( localize( "label.tag" ) + "_" + i, new Select<Tag>( "tag_" + i, getTags(), new EntityChoiceRenderer(), true ) ) );
        }

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), ArticleList.class ) );
    }
View Full Code Here

Examples of com.dodo.blog.ui.component.input.AjaxSubmitButton

        additionalInfo.add( new FormRow( localize( "label.surname" ), new TextBox( "surname" ) ) );
        additionalInfo.add( new FormRow( localize( "label.notify" ), new CheckBox( "notify" ) ) );

        // TODO: captcha

        form.add( new AjaxSubmitButton( "save", localize( "button.register" ) ) );
    }
View Full Code Here

Examples of com.dodo.blog.ui.component.input.AjaxSubmitButton

        additionalInfo.add( new FormRow( localize( "label.name" ), new TextBox( "name" ) ) );
        additionalInfo.add( new FormRow( localize( "label.surname" ), new TextBox( "surname" ) ) );
        additionalInfo.add( new FormRow( localize( "label.notify" ), new CheckBox( "notify" ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
    }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitButton

      public AddTodoForm(String id)
      {
        super(id, new CompoundPropertyModel(new TodoItem()));
        setOutputMarkupId(true);
        add(new TextField("text"));
        add(new AjaxSubmitButton("add", this)
        {
          protected void onSubmit(AjaxRequestTarget target, Form form)
          {
            // retrieve the todo item
            TodoItem item = (TodoItem)getParent().getModelObject();

            // add the item
            onAdd(item, target);
          }
        });

        add(new AjaxSubmitButton("cancel", this)
        {
          public void onSubmit(AjaxRequestTarget target, Form form)
          {
            onCancelTodo(target);
          }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitButton

    AjaxFormValidatingBehavior.addToAllFormComponents(form, "onkeyup",
        Duration.ONE_SECOND);

    // add a button that can be used to submit the form via ajax
    form.add(new AjaxSubmitButton("ajax-submit-button", form) {
      protected void onSubmit(AjaxRequestTarget target, Form form) {
        // repaint the feedback panel so that it is hidden
        target.addComponent(feedback);
      }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxSubmitButton

   
    Roles roles = settings.getUserManagement().getAllRoles();
    Palette role = new Palette("roles", new Model(roles), new ChoiceRenderer("label", "label"), 6, false);
    form.add(role);
   
    form.add(new AjaxSubmitButton("save", form) {

      @Override
      protected void onSubmit(AjaxRequestTarget target, Form form) {
        Sequence sequence = (Sequence) form.getModelObject();
        ImageUtils.writeSequence(sequence, imageDirectory);
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.