Dev - you feedback please: update of framework.

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

Dev - you feedback please: update of framework.

Hans Bakker
Dear development listmembers.

Please find below a suggestion for the update of the framework. Please give me
your feedback of your thoughts and if it is important to you.

Current situation.
--------------------------
in a form widget it is possible to specify an 'inter-app' link which directy
calls an request in a controller.xml of an other webapplication(mountpoint)
file.

example:
<field name="partyIdFrom">
<hyperlink
target="/partymgr/control/viewprofile?partyId=${invoice.partyIdFrom}"
target-type="inter-app" description="${invoice.partyIdFrom}"/>
</field>

in this case the request 'viewprofile' from the controller.xml of the
mountpoint(webapp) 'partymgr' is activated.

The problem.
-------------------
This is a kind of 'hardcoded' link because it is not using the controller.xml
file and cannot be rerouted. If this form is used in a user application and
the partymgr component is not present or a different menu needs to be
presented, this form cannot be used.
It is then required to make a copy of the screen widget which calls this form
widget and to copy the form itself and modify it. (it is possble here to use
the 'extends' and 'extends-resource' tags on the form and only override the
above line). However still the screen needs to be copied to call the updated
form.

The proposed solution.
------------------------------------
make the 'inter-app' functionality in the form widget also available as a
<response type in the <requestmap in the controller.xml file.
In this case the interapp can be routed over the controller file, the form can
be used unchanged and the screen does not have to be physically copied

In the opentravelsystem I am using very extensively existing screens and forms
without physically copying them. (check the controller.xml file in the
hotelbackend webapp in the opentravelsystem in the specialized directory) If
an existing inter-app link is present i cannot use that form anymore and need
to copy and modify the form and related screen....

--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

attachment0 (196 bytes) Download Attachment