Examples of AjaxFormSubmitBehavior


Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

    // The AjaxFormSubmitBehavior already calls the onSubmit of the form,
    // all
    // we need to do in the onSubmit(AjaxRequestTarget) handler is do our
    // Ajax
    // specific stuff, like rendering our components.
    commentForm.add(new AjaxFormSubmitBehavior(commentForm, "onsubmit")
    {
      @Override
      protected IAjaxCallDecorator getAjaxCallDecorator()
      {
        return new AjaxCallDecorator()
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

   */
  public AjaxSubmitLink(String id, final Form form)
  {
    super(id, form);

    add(new AjaxFormSubmitBehavior(form, "onclick")
    {

      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target)
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

  public AjaxButton(String id, IModel model, final Form form)
  {
    super(id, model);
    this.form = form;

    add(new AjaxFormSubmitBehavior(form, "onclick")
    {

      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target)
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

  public AjaxFallbackButton(String id, IModel model, Form form)
  {
    super(id, model);
    mForm = form;

    add(new AjaxFormSubmitBehavior(form, "onclick")
    {
      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target)
      {
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

        translateForm.add(translationPanel = new TranslationResourcePanel("resourcePanel",
                translationModel));
        add(changeUILocale());

        final IModel currentKeyModel = new PropertyModel(translationModel, "currentKey");
        keyTreePanel.getTree().add(new AjaxFormSubmitBehavior(translateForm, "onclick") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onSubmit(final AjaxRequestTarget target) {
                String selectedNodeKey = keyTreePanel.getSelectedNodeKey();
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

    private CheckBox showMissingOnlyComponent() {
        final IModel model = new PropertyModel(getModel(), "showMissingOnly");
        final CheckBox checkBox = new CheckBox("showMissingOnly", model);

        checkBox.add(new AjaxFormSubmitBehavior(toolbarForm, "onChange") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onSubmit(final AjaxRequestTarget target) {
                keyTreePanel.refresh();
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

        IModel choices = new LocaleListDetachableModel(true, uiLocaleModel);

        final Component uiLanguageChoice = new LocaleDropDown("changeUiLanguage", uiLocaleModel,
                uiLocaleModel, choices);

        uiLanguageChoice.add(new AjaxFormSubmitBehavior(changeUILanguageForm, "onChange") {

            private static final long serialVersionUID = 1L;

            @Override
            protected void onSubmit(final AjaxRequestTarget target) {
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

             * Use a different form for the target language drop down so when submitting it doesn't
             * set the current resource key value to the one of the old language
             */
            final Form targetLanguageForm = new Form("targetLanguageForm", selectionModel);

            targetLanguageChoice.add(new AjaxFormSubmitBehavior(targetLanguageForm, "onChange") {

                private static final long serialVersionUID = 1L;

                @Override
                protected void onSubmit(final AjaxRequestTarget target) {
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

        /*
         * Wanted to use a simpler OnChangeAjaxBehavior but target.addComponent(body) does not make
         * the EditAreaBehavior to update the body contents inside it, but instead puts the plain
         * TextArea contents above the empty xml editor
         */
        demoRequestsList.add(new AjaxFormSubmitBehavior(demoRequestsForm, "onchange") {

            @Override
            protected void onSubmit(AjaxRequestTarget target) {
                final String reqFileName = demoRequestsList.getModelValue();
                final String contents;
View Full Code Here

Examples of org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

  public AjaxButton(String id, IModel<String> model, final Form<?> form)
  {
    super(id, model);
    this.form = form;

    add(new AjaxFormSubmitBehavior(form, "onclick")
    {
      private static final long serialVersionUID = 1L;

      /**
       *
 
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.