[jboss-user] [JBoss Seam] - s:layoutForm

petemuir do-not-reply at jboss.com
Thu Mar 15 08:32:06 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028345#4028345

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028345



More information about the jboss-user mailing list