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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.3
    • Plugin - Tags
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: