struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-3622) fielderror freemarker template has too much whitespace, which is causing layout issues.
Date Wed, 11 May 2011 02:33:47 GMT
fielderror freemarker template has too much whitespace, which is causing layout issues.
---------------------------------------------------------------------------------------

                 Key: WW-3622
                 URL: https://issues.apache.org/jira/browse/WW-3622
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.2.3
         Environment: n/a
            Reporter: Jason Pyeron


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 -->


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message