The reason we put labels on top of form elements is its been proven to be more efficient for users.
http://raibledesigns.com/rd/entry/label_placement_in_web_forms If you don't like it, you can full-source your project and delete the "template" directory so there are no customizations. Matt On Thu, Apr 3, 2008 at 2:35 AM, oscar perez <[EMAIL PROTECTED]> wrote: > Hi all, > I have been looking at the source code of appfuse and it seems that there is > no easy way to display form components in one or 2 columns for struts 2. > The theme by default is CSS_XHTML and it shows the component i.e. label and > textfield for the following example in 1 columns: > > <s:textfield key="user.username" cssClass="text large" required="true"/> > > However, the workaround to display content in one column is the following: > > <b><fmt:message key="gps.latitude"/></b> <span class="req">*</span> > <s:textfield value="%{place.gpsLatitude}" theme="xhtml" > cssClass="text medium" /> > > > Can this be done differently or in a more efficient manner? I tried to > create a new css class to allow an easy switching between 1 and 2 columns > rendering but it seems that the label and the textfield are both wrapped in > divs and I cannot access directly to them. Any idea on how to make this more > efficient? > Thank you. > Oscar > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
