Re: groovy service code instead of minilang

2010-02-23 Thread Ruth Hoffman
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 idiosyncrasy :-) Jacopo

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

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
mber" how to solve 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 minute

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 yo

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
Hi Adrian: To tell the truth, I don't use it to build my services anymore. Too much trouble to try and figure out each time how it works. Much easier for me to write Java code. BTW, don't you find it curious that no other non-committers (aside from the original inquiry) has anything to say a

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 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 CRUD

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 David E Jones
and others might find 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

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
L 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, I don't know why I even try. Sorry, but I am not as patient as you when it come

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
s concerned. My applications do much more > than update database 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 i

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
ad, 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 the service because it j

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
>> >> >>> 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 perfectl

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
ne looks 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 of a time fi

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
te: > 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

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
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 o

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
gards, 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. sc

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 BJ Freeman
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 t

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 Jacopo Cappellato
On Feb 22, 2010, at 4:12 PM, Ruth Hoffman wrote: > Hi Jacques: > IMHO, there is nothing productive about trying to write procedures using XML. IMO Minilang is very productive. > I'd really like to see the Mini-Language facility augmented with support for > something like Groo

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
Hi Jacques: IMHO, there is nothing productive about trying to write procedures using XML. I'd really like to see the Mini-Language facility augmented with support for something like Groovy, Bean Shell or PHP. Do you think that is possible? Those who like using XML can continue to do so.

Re: groovy service code instead of minilang

2010-02-22 Thread Christopher Snow
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 you get a grasp on it you understand why it's there: produ

Re: groovy service code instead of minilang

2010-02-22 Thread Jacques Le Roux
For the same reason Java is not used. Once you get a grasp on it you understand why it's there: productivity. http://cwiki.apache.org/confluence/display/OFBIZ/Mini-Language+Guide#Mini-LanguageGuide-introduction Jacques From: "Christopher Snow" I was wondering why groovy

groovy service code instead of minilang

2010-02-22 Thread Christopher Snow
I was wondering why groovy is not used for service code instead on minilang? Any thoughts? Many thanks, Chris

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 wrote: > Kojo, >

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" Kojo, Does the Groovy plugin slowdown your eclipse environment? I tried

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

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 tryi

debugging Groovy files in Eclipse

2010-02-10 Thread Mike Voytovich
Hi, I'm trying to step through some OFBiz Groovy source files, and I'm unable to set breakpoints. When I right click in the gutter, "(Groovy) Toggle Breakpoint" is an option, but it can never actually set a breakpoint. I'm running Eclipse 3.5.1, and the Groovy-Ecl

Re: Enumerate apps using groovy?

2010-02-08 Thread Olivier Tremblay
h >> 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 scri

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: 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. Chee

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: How to pass data into a groovy file?

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

Re: How to pass data into a groovy file?

2010-01-28 Thread Ancheta, Fred
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 at Nabble.com. >

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 at

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 access from date filed of enetity instance from groovy file

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

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 ?

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 mi

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" But it is taking expire time as 0, that means the component in cache will never expire. -Original Message- From: David E Jones

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 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 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

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, the

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(CompilationUni

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

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 pos

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, No

Re: groovy in javascript

2009-11-09 Thread Deepa Mandal
> Ramkrishna > > > On Mon, Nov 9, 2009 at 12:12 PM, Raj Saini 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 > >

Re: groovy in javascript

2009-11-09 Thread Ramkrishna Swamy
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 dro

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 wrote: > 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 So

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 < prabhaka..

Groovy

2009-11-09 Thread Prabhakaran Duraisamy
Hi The product and the parties i created is displayed as last instead the newly created Product and Party should list / displayed as First, for that what i have to do -- Regards, Prabhakaran.D +91 99 520 93 900

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

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-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

Re: groovy in javascript

2009-11-07 Thread Abdullah Shaikh
hmm .. I don't know what you are looking for, anyway's I will give a try .. I guess the parameter you want in groovy in is javascript, don't know how it got there :), what you can do is set that parameter to a hidden field from javascript and then access it in groovy from the req

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 re

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 wrote: > Hi, > Can we set the value of parameter from java

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: findList method in Groovy..

2009-10-30 Thread swathi
to the Practice application, >> context.persons = delegator.findList("Person", 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.

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 s

findList method in Groovy..

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

Re: Need help with groovy and ftl

2009-06-10 Thread rohit2006
retreived in enclosed in square brackets eg. [CO10652], which i am unable >> to >> get rid off. I cannot use the data in this format and have to remove the >> square brackets. >> >> I am not sure what and where the issue is. Any help will be appreciated. >> >

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 tabl

Need help with groovy and ftl

2009-06-10 Thread rohit2006
is message 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: 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?

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

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: debugging Groovy

2009-06-02 Thread Ashish Vijaywargiya
pment+Guide+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. >

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" To: "user" Sent: Tuesday, June 2, 2009 5:30:40 PM GMT -07:00 US/Canada Mountain Subject: debugging G

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

Re: groovy

2009-03-25 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There are plenty of examples in the trunk version of ofbiz also http://docs.ofbiz.org/pages/viewpage.action?pageId=4472 lahmar sent the following on 3/25/2009 8:26 AM: > Hello, > > I would like to learn groovy and compare it with freemar

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 somet

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

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/gr

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 this

beanshell and groovy for ofbiz

2009-01-14 Thread wyt
The ofbiz documentation seems to favor the use of Groovy over Beanshell. Could someone tell when this change this happened and why? Thanks -- View this message in context: http://www.nabble.com/beanshell-and-groovy-for-ofbiz-tp21464866p21464866.html Sent from the OFBiz - User mailing list

Re: Unable to sort by lastUpdatedStamp in groovy files

2008-10-27 Thread Jacques Le Roux
und 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 = ["columnNu

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.findLis

Re: How can I call groovy in ftl

2008-10-10 Thread Sumit Pandit
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 there is a special reason to do otherwise we shouldn't be proces

Re: How can I call groovy in ftl

2008-10-10 Thread Scott Gray
and then from it I need > to get other 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 j

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/1

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]>: >

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 is request passed to groovy scripts?

2008-10-04 Thread [EMAIL PROTECTED]
ail actually 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 i

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 it

Re: How is request passed to groovy scripts?

2008-10-04 Thread Joe Eckard
.. 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 sendEmailFromScreen service and passing it one of the screen names. Here i

Re: How is request passed to groovy scripts?

2008-10-03 Thread [EMAIL PROTECTED]
have you looked at the confirmed order email. seems your duplicating it function. Ritesh Trivedi wrote: 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

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

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 [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 to

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

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 in

Re: bsh or groovy in services

2008-08-07 Thread BJ Freeman
k 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%3

Re: bsh or groovy in services

2008-08-07 Thread Jacques Le Roux
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---in--ofbiz-trunk-applications%3A-ec

<    1   2   3   4   >