Tapestry
  1. Tapestry
  2. TAPESTRY-2578

BeanDisplay formatting is off for fields with empty values

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.14
    • Fix Version/s: 5.0.15
    • Component/s: tapestry-core
    • Labels:
      None
    • Environment:
      FF2

      Description

      If a property value is empty (ie. "") the labels and the values (of the BeanDisplay) no longer line-up.

      The issue comes up with FF2 but not with IE7 (haven't tested other browsers).

      This could be a regression of bug 2293 because of the changes made to the HTML markup

      https://issues.apache.org/jira/browse/TAPESTRY-2293

      I will attach a static HTML example showing that FF2 somehow collapses empty dd elements

      1. index.html
        0.8 kB
        Martijn Brinkers

        Issue Links

          Activity

          Hide
          Howard M. Lewis Ship added a comment -

          Modified to render a   entity for blank (null or all whitespace) fields.

          Show
          Howard M. Lewis Ship added a comment - Modified to render a   entity for blank (null or all whitespace) fields.
          Hide
          Martijn Brinkers added a comment -

          As a workaround (until a fix) I use the following CSS

          DL.t-beandisplay DD:after

          { content: " "; }

          DL.t-beandisplay DD

          { white-space: pre; }

          It does slightly change the way properties are rendered though

          Show
          Martijn Brinkers added a comment - As a workaround (until a fix) I use the following CSS DL.t-beandisplay DD:after { content: " "; } DL.t-beandisplay DD { white-space: pre; } It does slightly change the way properties are rendered though

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Martijn Brinkers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development