Thank you for the quick response. First off, say that I was not complaining
about the default 1 column layout. I actually like it more than the 2 column
layout. My concern is merely to find an easy
integration in the same form for elements displayed in one column and
elements displayed in 2 column. I see that in the appfuse code this is
achieved by doing the following:
<b><fmt:message key="gps.latitude"/></b> <span class="req">*</span>
<s:textfield value="%{place.gpsLatitude}" cssClass="text medium"
/>
and I just was wondering if that is the easiest way to achieve it. However,
I think that your hint about themes may be the answer. I will rename your
css_xhtml to something different and use the default css_xhtml to achieve
the 2 column layout and yours as 1 column. Would that work then?
Best regards and thanks for your great app.
Oscar
On Thu, Apr 3, 2008 at 6:46 PM, Matt Raible <[EMAIL PROTECTED]> wrote:
> 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]
>
>