add possibility to sort field at the end form on widget form
------------------------------------------------------------

                 Key: OFBIZ-4518
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4518
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Nicolas Malin
            Priority: Minor
         Attachments: OFBIZ-4518.patch

When you use sort-field, you reorder only the form begin or you need list all 
file if you want reordered the end form.

Example
{quote}
 <form>
   <field name="a"/>
   <field name="b"/>
   <field name="c"/>
   <field name="d"/>
 </form>
{quote}
If you want put c at the end :

{quote}
 <form>
   <field name="a"/>
   <field name="b"/>
   <field name="c"/>
   <field name="d"/>
   <sort-order>
      <sort-field name="a"/>
      <sort-field name="b"/>
      <sort-field name="d"/>
      <sort-field name="c"/>   
   </sort-order>
 </form>
{quote}

with the patch
{quote}
 <form>
   <field name="a"/>
   <field name="b"/>
   <field name="c"/>
   <field name="d"/>
   <sort-order>
      <last-field name="c"/>
   </sort-order>
 </form>
{quote}

It's really usefull for inherited form when you adding new fields, you just use 
last-field on submit button.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to