[
https://issues.apache.org/jira/browse/OFBIZ-6117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339905#comment-14339905 ]
Pierre Smits commented on OFBIZ-6117:
-------------------------------------
A field with 'position' set leads to a new <td></td> within the <tr></tr>.
See the following documentation in the xsd:
{code}
<xs:attribute type="xs:positiveInteger" name="position" default="1">
<xs:annotation>
<xs:documentation>For row oriented forms (single type) can specify that the field should be put a column other than the first; for column oriented forms (list type) specifies the row the field should be put in.</xs:documentation>
</xs:annotation>
</xs:attribute>
{code}
What is missing is the grouping within a <tr><td></td></tr>.
> Widget Refactoring: have the ability to group fields horizontally
> -----------------------------------------------------------------
>
> Key: OFBIZ-6117
> URL:
https://issues.apache.org/jira/browse/OFBIZ-6117> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Pierre Smits
> Labels: widget
>
> Currently we only have the definition <field-group> in widget-form.xsd to group fields together. This definition only allows a vertical display of the fields.
> Having a possibility to display the grouped fields horizontally would extend the function.
> This could be as:
> {code:xml}
> <field-group title="${uiLabelMap.Phone}" display-align="hor">
> <field name="intlAccessCode><text size="5"/></field>
> <field name="areaCode><text size="5"/></field>
> <field name="phoneNo><text size="5"></field>
> <field name="extension><text size="5"></field>
> </field-group>
> {code}
> resulting in:
> {code:html}
> <input type="text" name="intlAccessCode" size="5"/><input type="text" name="areaCode" size="5"/><input type="text" name="phoneNo" size="5"/><input type="text" name="extension" size="5"/>
> {code}
> in the same grid element (tr/td combination) in stead of creating new tds for each field-group element.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)