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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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>

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: