Specify use of static java method from screen widget and form widget
-------------------------------------------------------------------- Key: OFBIZ-4583 URL: https://issues.apache.org/jira/browse/OFBIZ-4583 Project: OFBiz Issue Type: Improvement Components: framework Affects Versions: SVN trunk Reporter: Wai Priority: Minor Implemented capability to specify call to java method from the *Screens.xml and *Forms.xml Sample usage: <screen name="SomeScreenName" ...> <section> <actions> <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> ... <form name="SomeForm" ...> <actions> <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> ... -- 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 |
[ https://issues.apache.org/jira/browse/OFBIZ-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-4583: ----------------------- Attachment: ofbiz-4583.patch.txt > Specify use of static java method from screen widget and form widget > -------------------------------------------------------------------- > > Key: OFBIZ-4583 > URL: https://issues.apache.org/jira/browse/OFBIZ-4583 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: SVN trunk > Reporter: Wai > Priority: Minor > Attachments: ofbiz-4583.patch.txt > > > Implemented capability to specify call to java method from the *Screens.xml and *Forms.xml > Sample usage: > <screen name="SomeScreenName" ...> > <section> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... > <form name="SomeForm" ...> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... -- 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 |
In reply to this post by Nicolas Malin (Jira)
Hello Committers,
Any takers to commit this feature? Thanks |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155242#comment-13155242 ] Adrian Crum commented on OFBIZ-4583: ------------------------------------ Have you considered creating a UEL function to do this? It seems to me it would take less code and keep the existing widget API the same. > Specify use of static java method from screen widget and form widget > -------------------------------------------------------------------- > > Key: OFBIZ-4583 > URL: https://issues.apache.org/jira/browse/OFBIZ-4583 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: SVN trunk > Reporter: Wai > Priority: Minor > Attachments: ofbiz-4583.patch.txt > > > Implemented capability to specify call to java method from the *Screens.xml and *Forms.xml > Sample usage: > <screen name="SomeScreenName" ...> > <section> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... > <form name="SomeForm" ...> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... -- 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 |
I'm not familiar with UEL. I'm going to learn about this feature.
Meanwhile, the purpose of the implementing <java...> tag is so that I can use a java method to provide more complex massaging of the data to be displayed by the screen widget before the rendering process. Could you direct me to an example in ofbiz that performs '...creating a UEL function...' and how it is used to get an idea whether this could meet my needs. Thanks, Wai |
http://ci.apache.org/projects/ofbiz/site/javadocs/
Please put your comments in the Jira issue instead of replying through nabble. -Adrian On 11/22/2011 5:41 PM, Wai wrote: > I'm not familiar with UEL. I'm going to learn about this feature. > > Meanwhile, the purpose of the implementing<java...> tag is so that I can > use a java method to provide more complex massaging of the data to be > displayed by the screen widget before the rendering process. > > Could you direct me to an example in ofbiz that performs '...creating a UEL > function...' and how it is used to get an idea whether this could meet my > needs. > > Thanks, > Wai > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/jira-Created-OFBIZ-4583-Specify-use-of-static-java-method-from-screen-widget-and-form-widget-tp4089586p4096565.html > Sent from the OFBiz - Dev mailing list archive at Nabble.com. |
Sorry, wrong URL.
http://ci.apache.org/projects/ofbiz/site/javadocs/org/ofbiz/base/util/string/UelFunctions.html -Adrian On 11/22/2011 6:04 PM, Adrian Crum wrote: > http://ci.apache.org/projects/ofbiz/site/javadocs/ > > Please put your comments in the Jira issue instead of replying through > nabble. > > -Adrian > > On 11/22/2011 5:41 PM, Wai wrote: >> I'm not familiar with UEL. I'm going to learn about this feature. >> >> Meanwhile, the purpose of the implementing<java...> tag is so that I >> can >> use a java method to provide more complex massaging of the data to be >> displayed by the screen widget before the rendering process. >> >> Could you direct me to an example in ofbiz that performs '...creating >> a UEL >> function...' and how it is used to get an idea whether this could >> meet my >> needs. >> >> Thanks, >> Wai >> >> -- >> View this message in context: >> http://ofbiz.135035.n4.nabble.com/jira-Created-OFBIZ-4583-Specify-use-of-static-java-method-from-screen-widget-and-form-widget-tp4089586p4096565.html >> Sent from the OFBiz - Dev mailing list archive at Nabble.com. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155609#comment-13155609 ] Hans Bakker commented on OFBIZ-4583: ------------------------------------ why not simply using groovy here as all components do....i fail to see the advantage of using java here..... > Specify use of static java method from screen widget and form widget > -------------------------------------------------------------------- > > Key: OFBIZ-4583 > URL: https://issues.apache.org/jira/browse/OFBIZ-4583 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: SVN trunk > Reporter: Wai > Priority: Minor > Attachments: ofbiz-4583.patch.txt > > > Implemented capability to specify call to java method from the *Screens.xml and *Forms.xml > Sample usage: > <screen name="SomeScreenName" ...> > <section> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... > <form name="SomeForm" ...> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... -- 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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-4583. ---------------------- Resolution: Not A Problem > Specify use of static java method from screen widget and form widget > -------------------------------------------------------------------- > > Key: OFBIZ-4583 > URL: https://issues.apache.org/jira/browse/OFBIZ-4583 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: SVN trunk > Reporter: Wai > Priority: Minor > Attachments: ofbiz-4583.patch.txt > > > Implemented capability to specify call to java method from the *Screens.xml and *Forms.xml > Sample usage: > <screen name="SomeScreenName" ...> > <section> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... > <form name="SomeForm" ...> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... -- 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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155944#comment-13155944 ] Wai commented on OFBIZ-4583: ---------------------------- I think using groovy method of calling java methods would suffice here. Thanks Hans, Adrian. > Specify use of static java method from screen widget and form widget > -------------------------------------------------------------------- > > Key: OFBIZ-4583 > URL: https://issues.apache.org/jira/browse/OFBIZ-4583 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: SVN trunk > Reporter: Wai > Priority: Minor > Attachments: ofbiz-4583.patch.txt > > > Implemented capability to specify call to java method from the *Screens.xml and *Forms.xml > Sample usage: > <screen name="SomeScreenName" ...> > <section> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... > <form name="SomeForm" ...> > <actions> > <java path="fullPathToTargetClass" invoke="someMethodOfTargetClass" /> > ... -- 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 |
Free forum by Nabble | Edit this page |