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