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

fielderror freemarker template has too much whitespace, which is causing layout issues.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.3
    • None
    • None
    • None
    • n/a

    • Patch

    Description

      Patch forthcomming...

      Given: <!-- S -><s:fielderror fieldName="ledger.foo" /><s:textfield name="ledger.foo"></s:textfield><!- E -->

      Should produce: <!-- S -><ul id="ledger_" class="errorMessage"><li><span>foo is required</span></li></ul><input type="text" name="ledger.foo" value="" id="ledger_ledger_foo"/><!- E -->

      Not:

      Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E
      -------- ---- ---- ---- ---- ---- ---- ---- ---- ----------------
      00000000 3c21 2d2d 2053 202d 2d3e 2020 2020 2020 <!-- S -->
      00000010 2020 2020 2020 2020 2020 2020 2020 3c75 <u
      00000020 6c20 2020 2020 2020 2020 2020 2020 2020 l
      00000030 2020 2020 2020 2020 2020 2020 2020 2020
      00000040 2069 643d 226c 6564 6765 725f 2220 2020 id="ledger_"
      00000050 2020 2020 2020 2020 2020 2020 2020 2020
      00000060 2020 2020 2020 2020 2020 2020 2063 6c61 cla
      00000070 7373 3d22 6572 726f 724d 6573 7361 6765 ss="errorMessage
      00000080 2220 2020 2020 2020 2020 2020 2020 2020 "
      00000090 2020 2020 2020 2020 2020 2020 203e 0a20 >.
      000000a0 2020 2020 2020 2020 2020 2020 2020 2020
      000000b0 2020 2020 2020 203c 6c69 3e3c 7370 616e <li><span
      000000c0 3e66 6f6f 2069 7320 7265 7175 6972 6564 >foo is required
      000000d0 3c2f 7370 616e 3e3c 2f6c 693e 0a20 2020 </span></li>.
      000000e0 2020 2020 203c 2f75 6c3e 0a3c 696e 7075 </ul>.<inpu
      000000f0 7420 7479 7065 3d22 7465 7874 2220 6e61 t type="text" na
      00000100 6d65 3d22 6c65 6467 6572 2e66 6f6f 2220 me="ledger.foo"
      00000110 7661 6c75 653d 2222 2069 643d 226c 6564 value="" id="led
      00000120 6765 725f 6c65 6467 6572 5f66 6f6f 222f ger_ledger_foo"/
      00000130 3e3c 212d 2d20 4520 2d2d 3e ><!-- E -->

      Attachments

        1. struts2-trunk-WW-3622-v3.patch
          4 kB
          Jason Pyeron
        2. struts2-trunk-WW-3622.allfiles.tgz
          2 kB
          Jason Pyeron
        There are no Sub-Tasks for this issue.

        Activity

          People

            lukaszlenart Lukasz Lenart
            jpyeron Jason Pyeron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: