Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1922

Ajax remote form fail to bind nested bean property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.1.0
    • Component/s: "New" API
    • Labels:
      None

      Description

      public class TestAction extends ActionSupport {
      private TestBean myBean;
      ...
      }

      public class TestBean implements Serializable {
      private String name;
      ...
      }

      myTest.jsp
      <s:form id="testForm" ...>
      <input type="text" name="myBean.name" value="TEST_STRING"/>
      <s:submit value="Submit Normal"/>
      </s:form>

      <!-- submit button outside form -->
      <s:url id="ajaxSubmitFormTest" value="..." />
      <s:submit type="submit" theme="ajax" href="%

      {ajaxSubmitFormTest}

      " formId="testForm" value="Submit Outside Form"/>

      The string "TEST_STRING" fail to bind to the field "myBean.name" inside the action class when I use the ajax submit button to submit my form. But it work find with normal submit form button.

        Attachments

          Activity

            People

            • Assignee:
              musachy Musachy Barroso
              Reporter:
              stanleyc Stanley Cheng
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: