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

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


    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

   
    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

Related Classes of org.apache.wicket.ajax.markup.html.form.AjaxSubmitButton

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.