[
http://issues.apache.org/jira/browse/OFBIZ-44?page=comments#action_12418182 ]
Chris Howe commented on OFBIZ-44:
---------------------------------
Instead of changing the widgets.xsd...why not pass a parameterized java function to a generic service?
> Add capability to call java functions directly from actions in screen widgets
> ------------------------------------------------------------------------------
>
> Key: OFBIZ-44
> URL:
http://issues.apache.org/jira/browse/OFBIZ-44> Project: The Open For Business Project
> Type: New Feature
> Components: framework
> Versions: SVN trunk
> Reporter: Vinay Agarwal
> Attachments: 06-06-21 Java Action.patch
>
> This patch adds capability to call java function directly from actions in screen widgets. The call looks like
> <java location="org.ofbiz.MyActions" invoke="someFunction"/>
> The called function is declared as follows
> public static void someFunction(Map context) {
> ...
> }
> The benefits of having java functions are
> 1. Better code writing support from IDE
> 2. Breakpoint capability
> Regards,
> Vinay Agarwal
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira