[jira] Commenté: (OFBIZ-44) Add capability to call java functions directly from actions in screen widgets

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

[jira] Commenté: (OFBIZ-44) Add capability to call java functions directly from actions in screen widgets

Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-44?page=comments#action_12418798 ]

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

Vinay,

IMHO the reason why there is so much code in BSH is explained by your phrase "time required to rebuild and restart server."

I have just done some work in i18n of categories and that surely saved me time. Even if now I'm asking myself about making it rather in java method because of overhead (there is a loop in the BSH)

Jacques

> 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