Re: groovy service code instead of minilang

2010-02-22 Thread Jacques Le Roux
You just have to choose the right tool for the task at hand. For the moment, I prefer minilang when it comes to deal with simple CRUD services and a bit more elaborated. I agree that a groovy DSL could be a good thing though, I have just not enough time to even think about it... Jacques From

Re: groovy service code instead of minilang

2010-02-22 Thread BJ Freeman
they are use to is easier Christopher Snow sent the following on 2/22/2010 6:58 AM: Hi Jacques, minilang is quick, but being xml it's verbose. Groovy would be much more concise wouldn't it - especially if a DSL was created? Jacques Le Roux wrote: For the same reason Java is not used. Once

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
Simple methods are intended to be good for a few things for data mapping operations (which is the bulk of what needs to be done in business applications), including: 1. fewer lines than Java/groovy 2. each line less complex than equivalent Java or groovy 3. scripts from different developers

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
, Ruth David E Jones wrote: Simple methods are intended to be good for a few things for data mapping operations (which is the bulk of what needs to be done in business applications), including: 1. fewer lines than Java/groovy 2. each line less complex than equivalent Java or groovy 3. scripts

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
Are there any examples in OFBiz right now where you think that using Java or groovy would be easier to write and maintain than the simple-method it is implemented in? -David On Feb 22, 2010, at 10:20 AM, Ruth Hoffman wrote: David: IMO, what you say is true. When used as originally

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
Hi David: Off the top of my head, the send mail seca would be much easier to follow if it were coded in Java or groovy. I had a heck of a time figuring out why I was getting HTML formatting errors (on perfectly valid HTML) and trying to follow the sequence of events. In fact, I just ended up

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
: Off the top of my head, the send mail seca would be much easier to follow if it were coded in Java or groovy. I had a heck of a time figuring out why I was getting HTML formatting errors (on perfectly valid HTML) and trying to follow the sequence of events. In fact, I just ended up disabling

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
to me... so I'm guessing you mean a different simple-method... -David On Feb 22, 2010, at 10:42 AM, Ruth Hoffman wrote: Hi David: Off the top of my head, the send mail seca would be much easier to follow if it were coded in Java or groovy. I had a heck of a time figuring out why I

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
pretty straightforward to me... so I'm guessing you mean a different simple-method... -David On Feb 22, 2010, at 10:42 AM, Ruth Hoffman wrote: Hi David: Off the top of my head, the send mail seca would be much easier to follow if it were coded in Java or groovy. I had a heck

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
in Java or groovy. I had a heck of a time figuring out why I was getting HTML formatting errors (on perfectly valid HTML) and trying to follow the sequence of events. In fact, I just ended up disabling the service because it just took too much time to figure out. You asked. Ruth David E

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
records. To go beyond CRUD (and simple HTML forms to update the database) is very cumbersome using the Mini Language. Are we back to square one, looking for an example of a simple-method that you think would be better in Java or groovy? -David Again, just my 2 cents. Regards, Ruth David

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
to update the database) is very cumbersome using the Mini Language. Are we back to square one, looking for an example of a simple-method that you think would be better in Java or groovy? David, I don't know why I even try. Sorry, but I am not as patient as you when it comes to explaining

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
it easier to read and work with if it was written in Java or groovy, and details about that is what I think would be more helpful to this discussion. -David On Feb 22, 2010, at 12:54 PM, Ruth Hoffman wrote: David E Jones wrote: On Feb 22, 2010, at 12:23 PM, Ruth Hoffman wrote: David

how to pass a list from the .groovy level to screen.xml level?

2010-02-22 Thread Patrick
How can I pass my variables (I need to pass a list) from the .groovy level to the screen.xml level? I'm going to create X forms where X is the size of my list. Then I am going to populate the forms with the list elements. Thanks in advance Patrick

Re: groovy service code instead of minilang

2010-02-22 Thread Adrian Crum
Ruth Hoffman wrote: I tried using the Mini Language to create some Simple Services and I found that in each situation, CRUD operations were only the tip of the ice-berg as far as developing applications was concerned. My applications do much more than update database records. To go beyond

Re: how to pass a list from the .groovy level to screen.xml level?

2010-02-22 Thread Scott Gray
Hi Patrick, Just assign them to the context map in groovy like this: context.myListOfStuff = myGroovyList; Anything assigned to the context map will be available to the screen once the script has run. Regards Scott HotWax Media http://www.hotwaxmedia.com On 22/02/2010, at 4:08 PM, Patrick

Re: groovy service code instead of minilang

2010-02-22 Thread Hans Bakker
Ruth, you suffer from the problem which you share with most programmers with some experience: they like to use what they know and do not want to invest some time learning something new, even if it has proven to be better. Typically the learning time for ofbiz minilanguage is about 2-3 days if

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
a problem, then to look at XML code and figure out how to do the same thing. Let me put this another way. If it takes 2-3 days to learn the mini-language, then I have to do that it each and every time I need to use it. Java (PHP, Bean Shell, Groovy...) takes me 5-10 minutes no matter how long I've been

Re: groovy service code instead of minilang

2010-02-22 Thread Jacopo Cappellato
On Feb 23, 2010, at 3:53 AM, Ruth Hoffman wrote: If it takes 2-3 days to learn the mini-language, then I have to do that it each and every time I need to use it. Java (PHP, Bean Shell, Groovy...) takes me 5-10 minutes no matter how long I've been away from it. This is an interesting

Re: debugging Groovy files in Eclipse

2010-02-15 Thread Jacques Le Roux
Hi Brett, I had the same problem for some times. This weekend I have upgraded to Eclipse 3.5 (from 3.4.2) and Groovy plugin 2.0 (from 1.7), it seems to have disappeared HTH Jacques From: Brett Palmer brettgpal...@gmail.com Kojo, Does the Groovy plugin slowdown your eclipse environment

Re: debugging Groovy files in Eclipse

2010-02-15 Thread Abdullah Shaikh
Brett, There is an option in Groovy preferences to disable groovy compiler, I guess its related to groovy rebuilding projects because I have enabled that option and groovy isn't rebuilding projects since then. - Abdullah On Wed, Feb 10, 2010 at 9:37 PM, Brett Palmer brettgpal...@gmail.comwrote

Re: debugging Groovy files in Eclipse

2010-02-10 Thread kgambrah
Hello Mike, I am running Eclipse 3.5.1 with Groovy plugin version 1.5.6 without any problem. It is important to also make sure that you are running Eclispe in debugging mode. Are you able to set breakpoints in Java source files? Regards, Kojo Gambrah Mike Voytovich wrote: Hi, I'm trying

Re: debugging Groovy files in Eclipse

2010-02-10 Thread Brett Palmer
Kojo, Does the Groovy plugin slowdown your eclipse environment? I tried it a while ago but it was continually rebuilding the projects and making eclipse run slowly. I finally had to uninstall the plugin. Have the improved the plugin with these newer releases? Brett On Wed, Feb 10, 2010 at 6

Enumerate apps using groovy?

2010-02-08 Thread Olivier Tremblay
I'm trying to build a splash page app that would guide my users through the OFBiz functions they will need. Anyway, what I want right now is to use a groovy script to fetch the names of the other apps. Any pointers would be greatly appreciated. Thank you! Olivier

Re: Enumerate apps using groovy?

2010-02-08 Thread Adrian Crum
Look in the appbar.ftl files - they get the app names for the main navigation. -Adrian Olivier Tremblay wrote: I'm trying to build a splash page app that would guide my users through the OFBiz functions they will need. Anyway, what I want right now is to use a groovy script to fetch the names

Re: Enumerate apps using groovy?

2010-02-08 Thread Olivier Tremblay
is to use a groovy script to fetch the names of the other apps. Any pointers would be greatly appreciated. Thank you! Olivier

groovy service examples

2010-02-05 Thread Christopher Snow
Are there any example services written in groovy that someone could point me to? Many thanks, Chris

Re: groovy service examples

2010-02-05 Thread Christopher Snow
I've only found /ofbiz/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy Is this the only one? Out of interest, why aren't more services written in groovy? It is much more concise than minilang. The only thing that it misses in the code completion. Cheers, Chris

How to pass data into a groovy file?

2010-01-28 Thread Patrick
I am trying to run a groovy file that has this getAttribute request. productCategoryId = request.getAttribute(productCategoryId); What is the appropriate way to pass data into a groovy file, or make data available to a groovy file?

Re: How to pass data into a groovy file?

2010-01-28 Thread Alexander1893
hi, could you explain a litte lo more in detail, what you want to do: what is the origin of the data you want to pass? alexander -- View this message in context: http://n4.nabble.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html Sent from the OFBiz - User mailing list archive

Re: How to pass data into a groovy file?

2010-01-28 Thread Jacques Le Roux
.nabble.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html Sent from the OFBiz - User mailing list archive at Nabble.com.

how to access from date filed of enetity instance from groovy file

2009-12-15 Thread x x
hello how can i access field fromDate of entity instance from groovy script ?

Re: how to access from date filed of enetity instance from groovy file

2009-12-15 Thread Rishi Solanki
i access field fromDate of entity instance from groovy script ?

Dealing with service errors from Groovy event.

2009-12-14 Thread James McGill
I can't find an example of how to do this. I have a Groovy event that does a dispatcher.runSync(). When it runs and there are required fields missing, I get an error page and that's all that renders. What I really want is to refresh the page with an indication of what fields were missing. My

Query about Cache in groovy

2009-12-11 Thread Pankaj Jain
Hi In ofbiz, when we use a groovy file , in ist call to groovy, .groovy file is read and parsed and then we store the generated class file in a cache and after that for every next call to groovy, we refer the cache to get the class file. But if we update the .groovy files at run time

Re: Query about Cache in groovy

2009-12-11 Thread David E Jones
By default there is a timeout on this cache. -David On Dec 11, 2009, at 4:20 AM, Pankaj Jain wrote: Hi In ofbiz, when we use a groovy file , in ist call to groovy, .groovy file is read and parsed and then we store the generated class file in a cache and after that for every next call

RE: Query about Cache in groovy

2009-12-11 Thread Pankaj Jain
But it is taking expire time as 0, that means the component in cache will never expire. -Original Message- From: David E Jones [mailto:d...@me.com] Sent: Friday, December 11, 2009 3:53 PM To: user@ofbiz.apache.org Subject: Re: Query about Cache in groovy By default there is a timeout

RE: Query about Cache in groovy

2009-12-11 Thread Pankaj Jain
Hi David One more thing, in cache.properties file we have mentioned cache expire time for generally all caches (be it groovy, simple method etc) is 1 (ie 10 secs), Is that means all cache will expire in 10 seconds after their creation?? Means if we get two calls for same groovy with in 10

Re: Query about Cache in groovy

2009-12-11 Thread Jacques Le Roux
I guess there is mechanism somewhere which flushes the cache in case of change (be for groovy or everything else). Jacques From: Pankaj Jain pankaj.j...@lntinfotech.com But it is taking expire time as 0, that means the component in cache will never expire. -Original Message- From

Groovy library

2009-11-23 Thread Ján Valkovič
Hi, why OFBiz use library groovy-1.5.5.jar and not groovy-all-1.5.5.jar? I need goovy-all library for jasper report with groovy language and i don't know if there will be any version (or other) conflict with any other library. After quick check it seems it's ok, but it's not possible check all

Re: Groovy library

2009-11-23 Thread Scott Gray
Hi Ján It makes no sense for us to use groovy-all because half of the included libraries are already present in OFBiz. You should not add groovy-all to your classpath but instead add the individual libraries as you need them, they are right there in the lib folder of the groovy binary

Re: Groovy library

2009-11-23 Thread Ján Valkovič
Hi Scott, i agree, embedded groovy is not good idea at all. But i didn't found any other solution that works. External libraries in same versions didn't works for me: java.lang.AbstractMethodError org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:711

Re: groovy in javascript

2009-11-10 Thread Rishi Solanki
I respond to similar problem in another thread How to Set partyId in request in javascript Use groovy handler of org.ofbiz.webapp.event.GroovyEventHandler to get the parameters in your controller request. Rishi Solanki Enterprise Software Developer HotWax Media Pvt. Ltd. On Tue, Nov 10, 2009

Re: Groovy

2009-11-09 Thread Rishi Solanki
All delegator method has support for orderBy parameter pass the dateVariableName on which you want the filter. Another is EntityUtil.filterByDate() static method. Rishi Solanki Enterprise Software Developer HotWax Media Pvt. Ltd. On Mon, Nov 9, 2009 at 2:28 PM, Prabhakaran Duraisamy

Re: Groovy

2009-11-09 Thread Prabhakaran Duraisamy
Thanks Rishi Solanki. I try this. On Mon, Nov 9, 2009 at 4:30 PM, Rishi Solanki rishisolan...@gmail.comwrote: All delegator method has support for orderBy parameter pass the dateVariableName on which you want the filter. Another is EntityUtil.filterByDate() static method. Rishi

Re: groovy in javascript

2009-11-09 Thread Ramkrishna Swamy
a drop down. Value selected in the drop down will go as a form field once you submit the form. This value can be collected in the Groovy script. I do not see a way how you can get some thing in Groovy script without submitting the form. If you want to do some thing on selection of drop down, you can

Re: groovy in javascript

2009-11-09 Thread Deepa Mandal
, 2009 at 12:12 PM, Raj Saini rajsa...@gmail.com wrote: Hi Deepa, I am not sure if I understood well what you are trying to achieve. You have a drop down. Value selected in the drop down will go as a form field once you submit the form. This value can be collected in the Groovy script. I do

Re: groovy in javascript

2009-11-08 Thread Deepa Mandal
Hello Raj Sir, Following is my problem: I have a drop down in a form and upon selecting a value from this drop down I have to send contactMechId of that particular value to the included ftl in the form and *without submitting the form*. If I set the contactMechId in groovy or in request then I

Re: groovy in javascript

2009-11-08 Thread Raj Saini
Hi Deepa, I am not sure if I understood well what you are trying to achieve. You have a drop down. Value selected in the drop down will go as a form field once you submit the form. This value can be collected in the Groovy script. I do not see a way how you can get some thing in Groovy

groovy in javascript

2009-11-07 Thread Deepa Mandal
Hi, Can we set the value of parameter from javascript to groovy? -- Thanks Regards Deepa

Re: groovy in javascript

2009-11-07 Thread Abdullah Shaikh
If I am getting you right, you want to get the http parameter to groovy, then groovy gives you access to request object, request.getParameter(YOUR_PARAMETER) should work On Sat, Nov 7, 2009 at 4:19 PM, Deepa Mandal deepa.v.man...@gmail.comwrote: Hi, Can we set the value of parameter from

Re: groovy in javascript

2009-11-07 Thread Deepa Mandal
Hi Abdul, Actually i want to set the parameter from JavaScript to groovy. On Sat, Nov 7, 2009 at 4:57 PM, Abdullah Shaikh abdullah.sha...@viithiisys.com wrote: If I am getting you right, you want to get the http parameter to groovy, then groovy gives you access to request object

Re: groovy in javascript

2009-11-07 Thread Raj Saini
Hi Deepa, I think you are missing some thing here. Groovy is server side scripting whereas JavaScript is client side. How can you set a parameter from JS to Groovy while to scripts are running in to different environment. May be you want to set a request parameter with the help of JS and want

findList method in Groovy..

2009-10-30 Thread swathi
: http://n4.nabble.com/findList-method-in-Groovy-tp278232p278232.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: findList method in Groovy..

2009-10-30 Thread Adrian Crum
http://api.ofbiz.org/org/ofbiz/entity/Delegator.html -Adrian swathi wrote: Hi Can someone please explain me what are the parameters that delegator.findList() takes. Refering to the Practice application, context.persons = delegator.findList(Person, null, null, null, null, false); I tried to

Re: findList method in Groovy..

2009-10-30 Thread swathi
, null, null, null, null, false); I tried to search for it but could not find it. Thankyou. -- View this message in context: http://n4.nabble.com/findList-method-in-Groovy-tp278232p278260.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Need help with groovy and ftl

2009-06-10 Thread rohit2006
in context: http://www.nabble.com/Need-help-with-groovy-and-ftl-tp23959205p23959205.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Need help with groovy and ftl

2009-06-10 Thread Arun Patidar
Hello Rohit, findByAnd return list of Generic Values. So you must iterate the list, even though it have only one record. After that you fetch the orderId Thanks -- AP rohit2006 wrote: Hi, I am doing a query in orderview.groovy as follows, where i am getting a retreiving a order from a

Re: Need help with groovy and ftl

2009-06-10 Thread rohit2006
the square brackets. I am not sure what and where the issue is. Any help will be appreciated. Thanks Rohit -- View this message in context: http://www.nabble.com/Need-help-with-groovy-and-ftl-tp23959205p23960058.html Sent from the OFBiz - User mailing list archive at Nabble.com.

How do I return an error from groovy

2009-06-04 Thread Rees Watkins
Hi I would like to return an error from a groovy script so that the controller.xml error responce view is displayed. Is this possible? Thank you Rees

Re: How do I return an error from groovy

2009-06-04 Thread BJ Freeman
the normal model for groovy is to marshal data for either a widget or FTL. to return to controller the groovy would need to be called by the controller, so the Groovy would need to have a service interface. I am not sure a groovy can be called as service. your groovy can call the controller thru

Re: How do I return an error from groovy

2009-06-04 Thread Scott Gray
Hi Rees return error; should work. Regards Scott HotWax Media http://www.hotwaxmedia.com On 5/06/2009, at 2:44 AM, Rees Watkins wrote: Hi I would like to return an error from a groovy script so that the controller.xml error responce view is displayed. Is this possible? Thank you Rees

Re: debugging Groovy

2009-06-03 Thread Ashish Vijaywargiya
+Using+Practice+Application+(Hello+World..http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+%28Hello+World.. .) Also looked at some examples in other groovy files. But nothing seems to be written to any log files. Vince Clark vcl...@globalera.com

debugging Groovy

2009-06-02 Thread Vince Clark
I'm trying to use methods from the Debug class to output information to log files. That is how to do it according to this doc. http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...) Also looked at some examples in other groovy files

Re: debugging Groovy

2009-06-02 Thread Vince Clark
Never mind. Helps if you put the log message in the right groovy file. Vince Clark vcl...@globalera.com (303) 493-6723 - Original Message - From: Vince Clark vcl...@globalera.com To: user user@ofbiz.apache.org Sent: Tuesday, June 2, 2009 5:30:40 PM GMT -07:00 US/Canada Mountain

groovy

2009-03-25 Thread lahmar
Hello, I would like to learn groovy and compare it with freemarker. If someone has something about groovy. And what are the advantages with freemarker. I like to have an example of groovy code. Thks best regards. Lahmar. -- View this message in context: http://www.nabble.com/groovy

Re: groovy

2009-03-25 Thread Adrian Crum
Groovy and Freemarker are entirely different programs. Groovy is a scripting language, Freemarker is a templating language. It would be best to visit their websites to learn more about them. -Adrian lahmar wrote: Hello, I would like to learn groovy and compare it with freemarker. If someone

Re: groovy

2009-03-25 Thread Bharat Soni
Hello lahmar, You can refer following links for learning groovy and FTL. http://freemarker.sourceforge.net/docs/index.html http://groovy.codehaus.org/ Thanks Regards -- Bharat Soni lahmar wrote: Hello, I would like to learn groovy and compare it with freemarker. If someone has something

Re: beanshell and groovy for ofbiz

2009-01-15 Thread Bilgin Ibryam
http://markmail.org/search/?q=beanshell+to+groovy#query:beanshell%20to %20groovy+page:1+mid:yh7qjirchhlfsppp+state:results Bilgin On Jan 14, 2009, at 10:52 PM, wyt wrote: The ofbiz documentation seems to favor the use of Groovy over Beanshell. Could someone tell when this change

Re: Unable to sort by lastUpdatedStamp in groovy files

2008-10-27 Thread Jacques Le Roux
in the PortletAndPortalPagePortlet Entity) in log ? Jacques From: Bruno Busco [EMAIL PROTECTED] Hi, I am trying to sort by lastUpdatedStamp in a groovy file but I get an error: My groovy file is: // Get all Portlets located on the selected PortalPage orderBy = [columnNum, rowNum, lastUpdatedStamp]; portletList

Unable to sort by lastUpdatedStamp in groovy files

2008-10-24 Thread Bruno Busco
Hi, I am trying to sort by lastUpdatedStamp in a groovy file but I get an error: My groovy file is: // Get all Portlets located on the selected PortalPage orderBy = [columnNum, rowNum, lastUpdatedStamp]; portletList = delegator.findList(PortletAndPortalPagePortlet, EntityCondition.makeCondition

How can I call groovy in ftl

2008-10-10 Thread Sumit Pandit
Hello All, In my application the scenario is like : In FTL I have a variable (say partyId), now I need to access this variable in groovy file. There I extract more data from partyId and use that data in the calling FTL. For this I perform following steps :- In FTL I have partyID a) set

Re: How can I call groovy in ftl

2008-10-10 Thread Scott Gray
Hi Sumit Why can't you just use groovy before you get to the template like we do everywhere else? Unless there is a special reason to do otherwise we shouldn't be processing data in the templates just formatting it. Regards Scott 2008/10/11 Sumit Pandit [EMAIL PROTECTED]: Hello All, In my

Re: How can I call groovy in ftl

2008-10-10 Thread Sumit Pandit
. On Oct 10, 2008, at 5:45 PM, Scott Gray wrote: Hi Sumit Why can't you just use groovy before you get to the template like we do everywhere else? Unless there is a special reason to do otherwise we shouldn't be processing data in the templates just formatting it. Regards Scott 2008/10/11 Sumit

Re: How can I call groovy in ftl

2008-10-10 Thread Scott Gray
related data. The process I defined in mail is works fine for me. But I am not sure how feasible to use it in that way. On Oct 10, 2008, at 5:45 PM, Scott Gray wrote: Hi Sumit Why can't you just use groovy before you get to the template like we do everywhere else? Unless

Re: How can I call groovy in ftl

2008-10-10 Thread Sumit Pandit
not sure how feasible to use it in that way. On Oct 10, 2008, at 5:45 PM, Scott Gray wrote: Hi Sumit Why can't you just use groovy before you get to the template like we do everywhere else? Unless there is a special reason to do otherwise we shouldn't be processing data in the templates

Re: How is request passed to groovy scripts?

2008-10-04 Thread Joe Eckard
actually meant request object (HttpServletRequest) passed to the groovy script. As it seems like its an implicit object or getting passed somehow that I cant figure out. I will try to be more explicit. I am calling sendEmailFromScreen service and passing it one of the screen names. Here

Re: How is request passed to groovy scripts?

2008-10-04 Thread Ritesh Trivedi
Joe, Thanks for pointing that out - but sendMailFromScreen is not calling that method, it calls the populateContextForService method. OrderConfirmEmail actually gets sent from service (OrderServices.java) and yet the groovy script in OrderStatus uses request object without any errors. So

Re: How is request passed to groovy scripts?

2008-10-04 Thread [EMAIL PROTECTED]
gets sent from service (OrderServices.java) and yet the groovy script in OrderStatus uses request object without any errors. So it seems that someone is passing request object explicity as bodyParameter but I cant find it. Joe Eckard wrote: Check the populateContextForRequest method in /framework

How is request passed to groovy scripts?

2008-10-03 Thread Ritesh Trivedi
Hi, I am trying to call sendEmailFromScreen for a custom screen very similar to EmailOrderScreens, the groovy script is one of the existing ones ShopCart.groovy. sendEmailFromScreen service throws an exception groovy - property request not found for class ShopCart. I looked at similar code

Re: How is request passed to groovy scripts?

2008-10-03 Thread [EMAIL PROTECTED]
groovy does not have anything to do with calling a service. that is done thru the target and the controller. grovvy is used to marshal and manipulate data for display or sending in context to services. review http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams all

Re: How is request passed to groovy scripts?

2008-10-03 Thread [EMAIL PROTECTED]
/EmailPartyScreens.xml#CreatePartyNotification you will see an example of a screen that is passed [EMAIL PROTECTED] wrote: groovy does not have anything to do with calling a service. that is done thru the target and the controller. grovvy is used to marshal and manipulate data for display or sending in context

Re: How is request passed to groovy scripts?

2008-10-03 Thread Ravi
Hi , I am not confirm but let you check this that whether you set property for your groovy file or not. and So then please post your console or screen error in mail. Regards Ravindra Mandre Indore

Re: How is request passed to groovy scripts?

2008-10-03 Thread Ritesh Trivedi
I guess I could have been bit more clear in asking the question... I actually meant request object (HttpServletRequest) passed to the groovy script. As it seems like its an implicit object or getting passed somehow that I cant figure out. I will try to be more explicit. I am calling

bsh or groovy in services

2008-08-07 Thread BJ Freeman
should new mini language use groovy, or continue with bsh. call-bsh![CDATA[ HttpHost = conn.getURL().getHost(); return org.ofbiz.base.util.UtilMisc.toMap(HttpHost, HttpHost); ]]/call-bsh

Re: bsh or groovy in services

2008-08-07 Thread Jacques Le Roux
We have planned to put groovy support in minilang but for the moment only bsh works... http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr--td18462705.html Jacques From: BJ

Re: bsh or groovy in services

2008-08-07 Thread BJ Freeman
thanks, and thanks you your example in google check out I am speeding up on using only minilang. :) Jacques Le Roux sent the following on 8/7/2008 11:18 AM: We have planned to put groovy support in minilang but for the moment only bsh works... http://www.nabble.com/Re%3A-svn-commit%3A-r676862

Re: bsh or groovy in services

2008-08-07 Thread Jacques Le Roux
speeding up on using only minilang. :) Jacques Le Roux sent the following on 8/7/2008 11:18 AM: We have planned to put groovy support in minilang but for the moment only bsh works... http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp

Re: bsh or groovy in services

2008-08-07 Thread BJ Freeman
the following on 8/7/2008 11:18 AM: We have planned to put groovy support in minilang but for the moment only bsh works... http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr

Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

2008-07-14 Thread David Johnson
Hi, I have a virtual product with two variants. If I click on the Features tab when I'm looking at the virtual product I get: java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes Which seems to indicate that a groovy script is being called and it can't find a required jar

Re: Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

2008-07-14 Thread Scott Gray
Hi David That jar is required for Groovy itself and should be present under framework/base/lib/scripting/asm-2.2.jar The screen you mentioned loads fine for me on the latest trunk revision. Regards Scott 2008/7/14 David Johnson [EMAIL PROTECTED]: Hi, I have a virtual product with two

Re: Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

2008-07-14 Thread David Johnson
Hi, I'm running it in Eclipse and it wasn't on te project classpath. Thanks Dave Scott Gray wrote: Hi David That jar is required for Groovy itself and should be present under framework/base/lib/scripting/asm-2.2.jar The screen you mentioned loads fine for me on the latest trunk revision

Re: Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

2008-07-14 Thread Jacques Le Roux
I looked in last trunk revision. It's there, so I guess you should update Jacques From: David Johnson [EMAIL PROTECTED] Hi, I'm running it in Eclipse and it wasn't on te project classpath. Thanks Dave Scott Gray wrote: Hi David That jar is required for Groovy itself and should be present

Play with Java Files Method in Groovy (Auto Completion)

2008-06-02 Thread Alex D. Fleming
Hello , Can we use the Auto Completion Feature on the Java Class Methods in Groovy files ? Suppose I want to call the getPartyName of PartyHelper.java class. So If I import the package by import org.ofbiz.party.party.*; in my *.groovy file then How can I enable auto completion feature

Re: Play with Java Files Method in Groovy (Auto Completion)

2008-06-02 Thread David E Jones
be smarter but at the minute it seems not to be. -David On Jun 2, 2008, at 4:52 AM, Alex D. Fleming wrote: Hello , Can we use the Auto Completion Feature on the Java Class Methods in Groovy files ? Suppose I want to call the getPartyName of PartyHelper.java class. So If I import

Re: Play with Java Files Method in Groovy (Auto Completion)

2008-06-02 Thread Alex D. Fleming
On Jun 2, 2008, at 4:52 AM, Alex D. Fleming wrote: Hello , Can we use the Auto Completion Feature on the Java Class Methods in Groovy files ? Suppose I want to call the getPartyName of PartyHelper.java class. So If I import the package by import org.ofbiz.party.party.*; in my *.groovy

Re: Groovy

2007-11-30 Thread Jacques Le Roux
http://www.nabble.com/java-1.5-feature-usage-question-tf4624029.html#a13226647 Jacques - Message d'origine - De : Ján Valkovič A : user@ofbiz.apache.org Envoyé : vendredi 30 novembre 2007 10:20 Objet : Groovy Hi, how can i use groovy in ofbiz? are there any examples

Groovy

2007-11-30 Thread Ján Valkovič
Hi, how can i use groovy in ofbiz? are there any examples? Thanks ya

<    1   2   3