You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2015/09/17 15:12:04 UTC

[jira] [Commented] (OFBIZ-6623) Have correct field positioning in the row

    [ https://issues.apache.org/jira/browse/OFBIZ-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14802886#comment-14802886 ] 

Jacques Le Roux commented on OFBIZ-6623:
----------------------------------------

It works if you use something like
{code}
<field id="1" name="name1"><display></display></field>
<field id="2" name="name2" position="2"><display></display></field>
<field id="3" name="name3" position="2"><display></display></field>
<field id="3.0" name="name3.0" position="3"><display></display></field>
<field id="4" name="name4" position="4"><display></display></field>
{code}
{code}
<field id="3.0" name="name3.0" position="3"><display></display></field>
{code}
id and name can be anything. So I guess what you are looking for is something like
{code}
<field id="1" name="name1"><display></display></field>
<field id="2" name="name2" position="2"><display></display></field>
<field id="3" name="name3" position="2"><display></display></field>
<field id="3.0" position="3"><display></display></field>
<field id="4" name="name4" position="4"><display></display></field>
{code}

It's maybe not the most elegant solution but it's a pragmatic one as long as somebody does not provide an elegant one

Please close if you agree it's a sufficient solution

> Have correct field positioning in the row
> -----------------------------------------
>
>                 Key: OFBIZ-6623
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6623
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>
> Imagine the following example illustrating this:
> {code}
> <form etc>
> <field id="1" name="name1" etc/>
> <field id="2" name="name2" position="2" etc/>
> <field id="3" name="name3" position="2" etc/>
> <field id="4" name="name4" position="4" etc/>
> </form>
> {code}
> This should render as follows:
> The first row should have field id="1" and field id="2" at positions 1 and 2 as there is a field without an explicit position (field id="1").
> As field id="3" has the same position as field id="2" and as there is no field preceding without an explicit position or with an explicit position lower than the position of the field,  a new row should be started. The preceding row position should then be filled with a dummy field. 
> With respect to field id="4" this should be applied the same way. In this case there is not a field without positioning, but there is a field with a lower position. Thus the position between the two fields should be filled with a dummy field.
> This will ensure that fields are correctly positioned in a row of fields.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)