Struts 2
  1. Struts 2
  2. WW-1677

<s:submit type="button" does not render the enclosed content inside properly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: Plugin - Tags
    • Labels:
      None
    • Environment:

      Windows XP SP2, JSDK 6.0, Tomcat 5.5, Spring 2.0

      Description

      Please take a look at the following code, the <s:submit tag did not render the tags properly.
      <code>
      <s:submit type="button" theme="simple">
      <s:text name="testplan.form.submit.label" /> <img align="top" src="<s:url value="/images/save_16.png" />"/>
      </s:submit>
      </code

      I expected the output would be
      <code>
      <button type="submit">Submit <img align="top" src="images/save_16.png"/></button>
      </code>

      but the actual out put is
      <code>
      Submit <img align="top" src="/autobase/images/save_16.png?testPlan.id=1"/><button type="submit" id="testPlanForm_save" name="save" value="Submit">Submit</button>
      </code>

      1. submit-button.patch
        10 kB
        Mike Bydalek
      2. buttons.jpg
        67 kB
        Eric Martin
      3. index.jsp
        3 kB
        Eric Martin
      4. button.patch
        18 kB
        Eric Martin

        Issue Links

          Activity

          Peng Wang created issue -
          Ted Husted made changes -
          Field Original Value New Value
          Fix Version/s 2.0.5 [ 21791 ]
          Don Brown made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Assignee Don Brown [ mrdon ]
          Jeff Turner made changes -
          Workflow Struts [ 40819 ] Struts - editable closed status [ 44248 ]
          Ted Husted made changes -
          Resolution Fixed [ 1 ]
          Assignee Don Brown [ mrdon ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Ted Husted made changes -
          Link This issue relates to WW-1560 [ WW-1560 ]
          Ted Husted made changes -
          Link This issue is related to WW-1560 [ WW-1560 ]
          Ted Husted made changes -
          Link This issue relates to WW-1560 [ WW-1560 ]
          Eric Martin made changes -
          Attachment button.patch [ 13656 ]
          Attachment index.jsp [ 13657 ]
          Attachment buttons.jpg [ 13658 ]
          Don Brown made changes -
          Fix Version/s 2.0.5 [ 21791 ]
          Fix Version/s 2.1.1 [ 21863 ]
          Don Brown made changes -
          Fix Version/s 2.1.1 [ 21863 ]
          Fix Version/s 2.1.x [ 21743 ]
          Mike Bydalek made changes -
          Attachment submit-button.patch [ 13720 ]
          Don Brown made changes -
          Fix Version/s 2.1.3 [ 21864 ]
          Fix Version/s 2.1.x [ 21743 ]
          musachy made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          musachy made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          musachy made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Antonio Petrelli made changes -
          Workflow Struts - editable closed status [ 44248 ] Struts - editable closed status (temporary) [ 48901 ]
          Antonio Petrelli made changes -
          Workflow Struts - editable closed status (temporary) [ 48901 ] Struts - editable closed status [ 52034 ]
          Jeff Turner made changes -
          Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
          Lukasz Lenart made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Peng Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development