14 Replies Latest reply on Mar 16, 2007 3:18 PM by Pete Muir

    s:layoutForm

    Pete Muir Master

      I've just added a s:layoutForm component to CVS which takes the pain out of laying out a form. In general, it put's each child component on a new line BUT if the child is a s:decorate it will do some clever stuff:


      • If a facet named label is present on the s:decorate, the contents is placed in a left hand column, aligned right
      • If a facet named belowLabel or/and belowField is present on s:decorate, it's content is placed below the label or the field
      • If the field contained in the s:decorate is required="true" then a star is prepended to the label.


        Feedback on whether this is a useful component and how it can be improved would be great - especially if other facets would be useful or in relating to some (default) styling.