Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

In your WebPage:

Code Block
	AjaxFallbackButton a = new AjaxFallbackButton("id", form) {
		@Override
		protected void onSubmit(AjaxRequestTarget target, Form form) {
			if (target != null) {
				// Ajax submission
			} else {
				// Normal submission
			}
		}
	};
	form.add(a);