From a2ec26cd0baa54ea902c0a650feb6a46dab487dd Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Sat, 21 Apr 2007 16:39:45 +0000 Subject: [PATCH] Fix remote forms git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@531063 13f79535-47bb-0310-9956-ffa450edef68 --- apps/showcase/src/main/webapp/ajax/index.jsp | 2 +- .../main/webapp/ajax/remoteforms/index.jsp | 49 ++++++++----------- 2 files changed, 21 insertions(+), 30 deletions(-) diff --git a/apps/showcase/src/main/webapp/ajax/index.jsp b/apps/showcase/src/main/webapp/ajax/index.jsp index 5f48659ca..8d6095a50 100644 --- a/apps/showcase/src/main/webapp/ajax/index.jsp +++ b/apps/showcase/src/main/webapp/ajax/index.jsp @@ -16,9 +16,9 @@ Note: The Ajax tags are experimental. These examples have only been tested under
  • Remote div tag
  • Remote link tag
  • Tabbed panel
  • +
  • Remote forms
  • Widgets (may not work in all browsers!) see the dojo website for more information
  • -
  • (broken) Remote forms
  • diff --git a/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp b/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp index 774ee22c5..0bbb7f9fc 100644 --- a/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp +++ b/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp @@ -8,20 +8,21 @@ - -Remote form replacing another div:
    -
    initial content
    + + +

    +Remote form replacing another div:
    - + - +

    Remote form replacing the forms content:
    +

    Remote form evaluating suplied JS on completion:
    - + -Remote form replacing the forms content after confirming results:
    +

    +Remote form whose submit is cancelled:
    - - - - -Remote form replacing the forms content after running a function:
    - - - - - + +

    A form with no remote submit (so should not be ajaxified):
    - - + - +