[jira] [Closed] (OFBIZ-4472) New elements auto-parameters-[entity/service] for link/hyperlink

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-4472) New elements auto-parameters-[entity/service] for link/hyperlink

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-4472.
----------------------------------

       Resolution: Implemented
    Fix Version/s: SVN trunk
         Assignee: Jacques Le Roux

Thanks Nicolas, Gil,

Nicolas your patch is in trunk at revision: 1506835  

I simply put returns in case of no dispatcher or delegator
               

> New elements auto-parameters-[entity/service] for link/hyperlink
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-4472
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4472
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: Screen Widget Redesign, SVN trunk
>            Reporter: Nicolas Malin
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4472.patch, OFBIZ-4472.patch, OFBIZ-4472.patch, OFBIZ-4472.patch, OFBIZ-4472.patch, OFBIZ-4472.patch
>
>
> When you want edit/remove an entity from link call it's needed to give all pk on parameter element as like :
> {quote}         <field name="deleteLink">
>             <hyperlink target="example_deleteExampleFeatureAppl">
>                 <parameter param-name="exampleId"/>
>                 <parameter param-name="exampleFeatureId"/>
>                 <parameter param-name="fromDate"/>
>             <hyperlink/>
>          </field>
> {quote}
> To simplify, I introduce auto-parameters-entity like this :
> {quote}
>          <field name="deleteLink">
>             <hyperlink target="example_deleteExampleFeatureAppl">
>                 <auto-parameters-entity entity-name="ExampleFeatureAppl"/>
>             <hyperlink/>
>          </field>
> {quote}
> or
> {quote}
>          <form name="ListExampleFeatureAppls" type="list" default-entity-name="ExampleFeatureAppl">
>          <field name="deleteLink">
>             <hyperlink target="example_deleteExampleFeatureAppl">
>                 <auto-parameters-entity/>
>             <hyperlink/>
>          </field>
> {quote}
> This method is inspired from auto-fields-entity and I homogenized on widget renderer screen (link), menu (link) and form (hyperlink, sub-link)
> Any comments are welcome

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira