groovy and fo.ftl

2010-09-01 Thread Erwan de FERRIERES
Hi all, is there a way to call groovy scripts directly in a fo.ftl file ? Cheers, -- Erwan de FERRIERES www.nereide.biz

Re: groovy and fo.ftl

2010-09-01 Thread Erwan de FERRIERES
Le 01/09/2010 15:25, Erwan de FERRIERES a écrit : Hi all, is there a way to call groovy scripts directly in a fo.ftl file ? Cheers, Ok, this was a bit not enough, for example, I want to transpose this in a fo.ftl : description=${groovy:partyName.size()20?partyName[0..20]:partyName

Re: groovy and fo.ftl

2010-09-01 Thread Nicolas Malin
, is there a way to call groovy scripts directly in a fo.ftl file ? Cheers, Ok, this was a bit not enough, for example, I want to transpose this in a fo.ftl : description=${groovy:partyName.size()20?partyName[0..20]:partyName}/ or if I want to include a groovy file, which is used in a row-action in a form

Re: groovy and fo.ftl

2010-09-01 Thread Erwan de FERRIERES
Le 01/09/2010 17:01, Nicolas Malin a écrit : hi erwan, in your case You can use substring : http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_substring ${partyName?substring(0, 20)} Ok nice for this one.. time to go to bed ? -- Erwan de FERRIERES

Re: groovy and fo.ftl

2010-09-01 Thread pierre
Hi Erwan, I think you should call groovy from action of the screen widget and not from ftl. Pierre Erwan de FERRIERES a écrit : Hi all, is there a way to call groovy scripts directly in a fo.ftl file ? Cheers,

Fetching array list data from groovy into rptdesign

2010-08-31 Thread Keerti Sharma
Hi, I have passed an arraylist from groovy into rptdesign by birt parameters. I want to iterate that arraylist and fetch its data and display all data of array list in my report. Thanx -- View this message in context: http://ofbiz.135035.n4.nabble.com/Fetching-array-list-data-from-groovy

Re: Fetching array list data from groovy into rptdesign

2010-08-31 Thread Erwan de FERRIERES
Le 31/08/2010 08:47, Keerti Sharma a écrit : Hi, I have passed an arraylist from groovy into rptdesign by birt parameters. I want to iterate that arraylist and fetch its data and display all data of array list in my report. Thanx I think you have to create a dataset, where the open method

Re: Groovy question regarding passing html parameters

2010-08-25 Thread Scott Gray
for your patience and help. Regards, Pierre 2010/8/23 Pierre Smits pierre.sm...@gmail.com When removing 'as list' from the groovy code, I get following error: Problems with the response writer/output stream: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen

Re: Groovy question regarding passing html parameters

2010-08-24 Thread Jacques Le Roux
).:) Thanks for your patience and help. Regards, Pierre 2010/8/23 Pierre Smits pierre.sm...@gmail.com When removing 'as list' from the groovy code, I get following error: Problems with the response writer/output stream: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component

Re: Groovy question regarding passing html parameters

2010-08-24 Thread Pierre Smits
send any experienceId's in the query string I get all experiences associated with profileOwnerId (which is what I want).:) Thanks for your patience and help. Regards, Pierre 2010/8/23 Pierre Smits pierre.sm...@gmail.com When removing 'as list' from the groovy code, I get following

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Pierre Smits
;widget#47;ProfilerPrintScreens.xml#35;PrintProfilePDF#93;#58; groovy.lang.MissingPropertyException#58; No such property#58; EntityCondition for class#58; ProfileExperiences #40;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Pierre Smits
for class#58; ProfileExperiences #40;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import org.ofbiz.base.util.*; import org.ofbiz.entity.*; import org.ofbiz.entity.util.*; import org.ofbiz.party.contact.*; import

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Scott Gray
;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import org.ofbiz.base.util.*; import org.ofbiz.entity.*; import org.ofbiz.entity.util.*; import org.ofbiz.party.contact.*; import javolution.util.FastMap; List experienceItems

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Pierre Smits
;ProfilerPrintScreens.xml#35;PrintProfilePDF#93;#58; groovy.lang.MissingPropertyException#58; No such property#58; EntityCondition for class#58; ProfileExperiences #40;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Scott Gray
#58; No such property#58; EntityCondition for class#58; ProfileExperiences #40;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import org.ofbiz.base.util.*; import org.ofbiz.entity.*; import

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Pierre Smits
for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import org.ofbiz.base.util.*; import org.ofbiz.entity.*; import org.ofbiz.entity.util.*; import org.ofbiz.party.contact.*; import javolution.util.FastMap; List experienceItems

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Pierre Smits
#58; ProfileExperiences #40;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import org.ofbiz.base.util.*; import org.ofbiz.entity.*; import org.ofbiz.entity.util.*; import org.ofbiz.party.contact

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Scott Gray
;PrintProfilePDF#93;#58; groovy.lang.MissingPropertyException#58; No such property#58; EntityCondition for class#58; ProfileExperiences #40;No such property#58; EntityCondition for class#58; ProfileExperiences#41; /p The complete code in the groovy file is: import

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Pierre Smits
(which is what I want).:) Thanks for your patience and help. Regards, Pierre 2010/8/23 Pierre Smits pierre.sm...@gmail.com When removing 'as list' from the groovy code, I get following error: Problems with the response writer/output stream: org.ofbiz.widget.screen.ScreenRenderException: Error

Re: Groovy question regarding passing html parameters

2010-08-23 Thread Scott Gray
experiences. And if I don't send any experienceId's in the query string I get all experiences associated with profileOwnerId (which is what I want).:) Thanks for your patience and help. Regards, Pierre 2010/8/23 Pierre Smits pierre.sm...@gmail.com When removing 'as list' from the groovy

Groovy question regarding passing html parameters

2010-08-20 Thread Pierre Smits
In a url I pass following parameters: ?profile=1experience=1,100010 In a groovy file I get the parameters parameter.profile parameter.experience My question is: how do I get the delegator to find entities in the database based on both parameter.profile and parameter.experience

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Scott Gray
=1,100010 In a groovy file I get the parameters parameter.profile parameter.experience My question is: how do I get the delegator to find entities in the database based on both parameter.profile and parameter.experience? In all the other codes in groovy files that I see it seems

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Jacques Le Roux
http://en.wikipedia.org/wiki/Query_string Jacques Pierre Smits wrote: In a url I pass following parameters: ?profile=1experience=1,100010 In a groovy file I get the parameters parameter.profile parameter.experience My question is: how do I get the delegator to find entities

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Pierre Smits
Hi Scott, Thanks for the pointer! Unfortunately, I am a total groovy-newbie Would selectedExperiences = parameter.selectedExperiences; if (selectedExperiences==){ experienceItemList = delegator.findByAnd(ProfileExperience, [profileOwnerId : profileOwnerId]); } else

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Jacques Le Roux
following parameters: ?profile=1experience=1,100010 In a groovy file I get the parameters parameter.profile parameter.experience My question is: how do I get the delegator to find entities in the database based on both parameter.profile and parameter.experience? In all the other codes

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Michał Cukierman
://www.hotwaxmedia.com On 20/08/2010, at 10:31 PM, Pierre Smits wrote: In a url I pass following parameters: ?profile=1experience=1,100010 In a groovy file I get the parameters parameter.profile parameter.experience My question is: how do I get the delegator to find

Re: Groovy question regarding passing html parameters

2010-08-20 Thread James McGill
2010/8/20 Michał Cukierman mcukier...@partbook.eu There should be a method for doing sth like: EntityCondition.makeCondition(shipmentId, EntityOperator.IN, CustomWhereCondition). There should be extended methods for making joins. As long as those do not exist - we should at least try use P

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Scott Gray
Smits wrote: In a url I pass following parameters: ?profile=1experience=1,100010 In a groovy file I get the parameters parameter.profile parameter.experience My question is: how do I get the delegator to find entities in the database based on both parameter.profile

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Scott Gray
Hi Pierre, See my other response to Michal for the correct code, it was only from memory though so may not actually work without tweaking. Regards Scott On 21/08/2010, at 12:02 AM, Pierre Smits wrote: Hi Scott, Thanks for the pointer! Unfortunately, I am a total groovy-newbie

Re: Groovy question regarding passing html parameters

2010-08-20 Thread Michał Cukierman
delegator.findList(...) with an EntityOperator.IN condition for the experience field. Regards Scott HotWax Media http://www.hotwaxmedia.com On 20/08/2010, at 10:31 PM, Pierre Smits wrote: In a url I pass following parameters: ?profile=1experience=1,100010 In a groovy

Passing error message from groovy to XML screen

2010-08-12 Thread Swapnil Sawant
Hi, I wish to achieve following functionality in ofbiz : - From controller , I am calling a groovy file - In groovy file, I am checking if data corresponding to request parameters from screen is existing in some entity or not - If data is not preset in that entity

Re: Passing error message from groovy to XML screen

2010-08-12 Thread Ravindra Mandre
Hello Swapnil, In groovy you can show error message by setting them in request , as follows request.setAttribute(_ERROR_MESSAGE_, your custom or standard message here ); this returns your messge on UI, Regards Ravindra Mandre On Thu, Aug 12, 2010 at 11:47 AM, Swapnil Sawant swapnil.saw

RE: Passing error message from groovy to XML screen

2010-08-12 Thread Swapnil Sawant
Hi Ravindra, Thanks for your reply. I want to set the error message while processing in groovy and then display that error message on XML corresponding to response name=failure type=view value=errorpage/ If you have any such code, could you pl paste it here. It would be of great help to us

Re: Passing error message from groovy to XML screen

2010-08-12 Thread Ravindra Mandre
Hello swapnil , you can give a try to this by the following : event type=bsf invoke=component://Path of your groovy file/ response name=success type=view value=valueName/ response name=error type=view value=valueName/ based on the return from groovy file which may be success or error , you can

RE: Passing error message from groovy to XML screen

2010-08-12 Thread Swapnil Sawant
@ofbiz.apache.org Subject: Re: Passing error message from groovy to XML screen Hello swapnil , you can give a try to this by the following : event type=bsf invoke=component://Path of your groovy file/ response name=success type=view value=valueName/ response name=error type=view value=valueName/ based

help with groovy file

2010-07-24 Thread rohit
this message in context: http://ofbiz.135035.n4.nabble.com/help-with-groovy-file-tp2300959p2300959.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: help with groovy file

2010-07-24 Thread Santosh Malviya
.nabble.com/help-with-groovy-file-tp2300959p2300959.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: help with groovy file

2010-07-24 Thread rohit
i did, now it shows the below error: (SQL Exception while setting value on field [orderId] of entity OrderHeader: (An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'Types.JAVA_OBJECT'.)) (Error running Groovy script at location [component://snjPurchasing/webapp

Re: help with groovy file

2010-07-24 Thread Santosh Malviya
was made to get a data value of type 'VARCHAR' from a data value of type 'Types.JAVA_OBJECT'.)) (Error running Groovy script at location [component://snjPurchasing/webapp/snjPurchasing/WEB-INF/actions/ViewRequirement.groovy] (SQL Exception while setting value on field [orderId] of entity

Re: groovy screen widget

2010-06-21 Thread james_sg
Hi Varun, What you had wanted to do will work if you are using 10.04. So coding it in groovy file is the right approach when using 9.04 Regards, James Hi Scott, I have already put the groovy part in a .groovy file, though just wanted to know if i had missed something. Thanks again. On Sat

Re: groovy screen widget

2010-06-21 Thread Scott Gray
I would argue that using groovy is the right approach regardless of the version. Screen actions are intended to speed up simple tasks, they are not a substitute for actual scripting. Especially when you consider that whenever you try and do something complicated with them you end up spending

Re: groovy screen widget

2010-06-21 Thread james_sg
Hi Scott, I agree. In my special case, I was backporting the ajax lookup code from 10.04 to 9.04, and encountered the problem where the set field function gives a String instead of the EntityCondition object. So if I were to use the makeCondition function, many extra groovy files will be created

Re: groovy screen widget

2010-06-21 Thread Jacques Le Roux
, I was backporting the ajax lookup code from 10.04 to 9.04, and encountered the problem where the set field function gives a String instead of the EntityCondition object. So if I were to use the makeCondition function, many extra groovy files will be created. Regards, James Scott Gray-2 wrote: I

Re: groovy screen widget

2010-06-21 Thread james_sg
the problem where the set field function gives a String instead of the EntityCondition object. So if I were to use the makeCondition function, many extra groovy files will be created. Regards, James Scott Gray-2 wrote: I would argue that using groovy is the right approach regardless

Re: groovy screen widget

2010-06-21 Thread varun bhansaly
was backporting the ajax lookup code from 10.04 to 9.04, and encountered the problem where the set field function gives a String instead of the EntityCondition object. So if I were to use the makeCondition function, many extra groovy files will be created. Regards, James Scott Gray-2 wrote

Re: groovy screen widget

2010-06-19 Thread varun bhansaly
, try using 'type' attribute set field=foo value=${groovy: ...} type=.../ -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. varun bhansaly wrote

Re: groovy screen widget

2010-06-19 Thread varun bhansaly
Hi Scott, I have already put the groovy part in a .groovy file, though just wanted to know if i had missed something. Thanks again. On Sat, Jun 19, 2010 at 12:56 PM, varun bhansaly vbhans...@gmail.comwrote: Hi Atul, Thanks for ur reply. I had already tried that with type = Object, it still

Re: groovy screen widget

2010-06-19 Thread Scott Gray
Hi Varun, But I don't understand why you don't just create the entity condition in the groovy file: isVirtualCondition = org.ofbiz.entity.condition.EntityCondition.makeCondition(isVirtual, Y) Why try and create a condition in the screen widget when it is easier to do it in the groovy file

groovy screen widget

2010-06-18 Thread varun bhansaly
Hi, I am using ofbiz 09.04, facing an issue with groovy screen widget. my screen widget action contains - set field=*andCondition* value=*${groovy: return org.ofbiz.entity.condition.EntityCondition.makeCondition(isVirtual, Y)}* / In my groovy script *andCondition *is an instanceof *String

Re: groovy screen widget

2010-06-18 Thread Scott Gray
What are there asterisks everywhere in your code? Why aren't you just creating the condition in groovy? Regards Scott HotWax Media http://www.hotwaxmedia.com On 19/06/2010, at 4:23 AM, varun bhansaly wrote: Hi, I am using ofbiz 09.04, facing an issue with groovy screen widget. my screen

Re: groovy screen widget

2010-06-18 Thread Atul Vani
hi Varun, try using 'type' attribute set field=foo value=${groovy: ...} type=.../ -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. varun bhansaly wrote

Groovy file as a service

2010-04-14 Thread Kranti Agrawal
Hi, Can I call a groovy file as a service? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com

Re: Groovy file as a service

2010-04-14 Thread Brajesh Patel
Hi Kranti, hope following code will help you. event type=groovy path=component:// manufacturing/webapp/manufacturing/jobshopmgt/ invoke=ShowProductionRun.groovy/ Thanks and Regards Brajesh Patel Kranti Agrawal wrote: Hi, Can I call a groovy file as a service? Regards, Kranti Agrawal

Re: Groovy file as a service

2010-04-14 Thread Jacques Le Roux
Note that an event is not a service though... Jacques Brajesh Patel wrote: Hi Kranti, hope following code will help you. event type=groovy path=component:// manufacturing/webapp/manufacturing/jobshopmgt/ invoke=ShowProductionRun.groovy/ Thanks and Regards Brajesh Patel Kranti Agrawal wrote

Re: Groovy file as a service

2010-04-14 Thread Kranti Agrawal
krantiagrawal.blogspot.com On Wed, Apr 14, 2010 at 5:16 PM, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Note that an event is not a service though... Jacques Brajesh Patel wrote: Hi Kranti, hope following code will help you. event type=groovy path=component:// manufacturing/webapp/manufacturing

Re: Groovy file as a service

2010-04-14 Thread Kranti Agrawal
=[UTF-8]- total:0.0,since last(Begin):0.0]] [java] 2010-04-14 19:09:06,307 (http-0.0.0.0-8443-6) [ CallSiteArray.java:40 :INFO ] -=-=-=- TEST GROOVY SERVICE -=-=-=- [java] 2010-04-14 19:09:06,308 (http-0.0.0.0-8443-6) [ ?:? :INFO ] - Message is: hello - [java] 2010-04-14

Re: Groovy file as a service

2010-04-14 Thread Kranti Agrawal
Can you please give some examples of groovy services which return a List? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com On Wed, Apr 14, 2010 at 7:53 PM, Robert Morley rmor...@emforium.com wrote: We had a period of time where people wrote some services in groovy

any reason a groovy file can't execute my java class?

2010-04-12 Thread Patrick
I made a little java class but it won't execute for me in groovy, I can execute other classes orh = new OrderReadHelper(); //i can execute this z = new NextPickupDateUpdater(); //this is my class, it doesn't complain, but it doesn't execute, inspecting the value gives a memory address, numdays

Re: any reason a groovy file can't execute my java class?

2010-04-12 Thread Adrian Crum
Make sure the update method is public, and that it takes no arguments and returns a number. -Adrian Patrick wrote: I made a little java class but it won't execute for me in groovy, I can execute other classes orh = new OrderReadHelper(); //i can execute this z = new NextPickupDateUpdater

Re: any reason a groovy file can't execute my java class?

2010-04-12 Thread Patrick
I guess you can't have a groovy file with the same name as your java class file :( On Mon, Apr 12, 2010 at 2:01 PM, Adrian Crum adri...@hlmksw.com wrote: Make sure the update method is public, and that it takes no arguments and returns a number. -Adrian Patrick wrote: I made a little

Re: any reason a groovy file can't execute my java class?

2010-04-12 Thread Jacques Le Roux
Yes, that's a problem indeed Jacques From: Patrick patrickinminneapo...@gmail.com I guess you can't have a groovy file with the same name as your java class file :( On Mon, Apr 12, 2010 at 2:01 PM, Adrian Crum adri...@hlmksw.com wrote: Make sure the update method is public

Re: any reason a groovy file can't execute my java class?

2010-04-12 Thread Anurag Walia
Hi, Some times if the java file exist inside hot-deploy then problem come like this. can you specify the path of your java and groovy file. Regards Anurag Walia -- View this message in context: http://n4.nabble.com/any-reason-a-groovy-file-can-t-execute-my-java-class-tp1837571p1837980.html

Calling groovy from scheduled job (OFVIZ 9.04)

2010-04-06 Thread Koon Sang
Hello, I have created a scheduled job to run at certain time. The job calls my service which I define as the followoing: service name=AutoNotificationCertificateExpiry engine=groovy location=component://order/webapp/ordermgr/order/RunAutoNotification.groovy invoke= descriptionAuto

Re: Calling groovy from scheduled job (OFVIZ 9.04)

2010-04-06 Thread Joe Eckard
You can get the delegator from the dispatch context, which is populated in the binding for groovy services as dctx. delegator = dctx.getDelegator(); // add to RunAutoNotification.groovy On Apr 6, 2010, at 7:06 AM, Koon Sang wrote: Hello, I have created a scheduled job to run at certain

Re: Calling groovy from scheduled job (OFVIZ 9.04)

2010-04-06 Thread Koon Sang
Thanks, Joe. It is working fine now. -- View this message in context: http://n4.nabble.com/Calling-groovy-from-scheduled-job-OFVIZ-9-04-tp1752673p1753750.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: variable from groovy to ftl file

2010-03-13 Thread Ashish Vijaywargiya
. In the groovy file I've got this simple line context.testname = hello; So then I try to access it in the FTL file. orderstatus.ftl with a simple #assign xx=testname But it says my variable is null. Error on line 312, column 1 in component://ecommerce/webapp/ecommerce/order/orderitems.ftl

Re: groovy code completion

2010-03-12 Thread Jacques Le Roux
David added building and completion at r742053 Due to slowness (in 3.4) I reverted both at r911202 I have added back completion at r922190 Jacques From: zhiyongcui zhiyong...@gmail.com Why my groovy code completion is disabled in ofbiz project? The IDE I used is eclipse 3.5. -- View

Re: groovy code completion

2010-03-12 Thread Jacques Le Roux
Hi Erwan, I have added back the groovy nature at r922190 Cheers Jacques From: Jacques Le Roux jacques.le.r...@les7arts.com Hi Erwan, I did not do it but looks like it's done automatically at the plugin installation. That's why I removed it from the .project file. Though I have

variable from groovy to ftl file

2010-03-12 Thread Patrick
/webapp/ecommerce/order/orderstatus.ftl/ /screen basically OrderStatus.groovy loads up some variables which should be available to the ftl file. In the groovy file I've got this simple line context.testname = hello; So then I try to access it in the FTL file. orderstatus.ftl with a simple #assign xx

Re: variable from groovy to ftl file

2010-03-12 Thread BJ Freeman
to the ftl file. In the groovy file I've got this simple line context.testname = hello; So then I try to access it in the FTL file. orderstatus.ftl with a simple #assign xx=testname But it says my variable is null. Error on line 312, column 1 in component://ecommerce/webapp/ecommerce/order

Re: variable from groovy to ftl file

2010-03-12 Thread Patrick
://ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderStatus.groovy/   html-template location=component://ecommerce/webapp/ecommerce/order/orderstatus.ftl/ /screen basically OrderStatus.groovy loads up some variables which should be available to the ftl file. In the groovy file I've got

Re: variable from groovy to ftl file

2010-03-12 Thread Brajesh Patel
Hi Patrick, it will work, in groovy : context.testname = hello; in ftl: #assign xx=testname / I think you are putting in side of the condition that is not satisfy. On Sat, Mar 13, 2010 at 4:39 AM, Patrick patrickinminneapo...@gmail.comwrote: I am modifying the order confirmation email

Re: groovy code completion

2010-03-10 Thread Jacques Le Roux
guess it's better in OFBiz since we don't need to build anything (so far) and I suspect this was uselessly using a lot of resources HTH Jacques From: Erwan de FERRIERES erwan.de-ferrie...@nereide.fr Le 09/03/2010 15:35, Christopher Snow a écrit : Does the plugin work with other groovy

Re: groovy code completion

2010-03-09 Thread zhiyongcui
how? -- View this message in context: http://n4.nabble.com/groovy-code-completion-tp1585483p1585739.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: groovy code completion

2010-03-09 Thread Christopher Snow
Does the plugin work with other groovy projects? What operating system are you using? The groovy plugin doesn't work for example with the ubuntu supplied eclipse. Ravindra Mandre wrote: Using its plug-in may solve your problem. Ravindra On Tue, Mar 9, 2010 at 8:21 AM, zhiyongcui zhiyong

Re: groovy code completion

2010-03-09 Thread Ravindra Mandre
Using its plug-in may solve your problem. Ravindra On Tue, Mar 9, 2010 at 8:21 AM, zhiyongcui zhiyong...@gmail.com wrote: Why my groovy code completion is disabled in ofbiz project? The IDE I used is eclipse 3.5. -- View this message in context: http://n4.nabble.com/groovy-code

Re: groovy code completion

2010-03-09 Thread zhiyongcui
It works fine with other groovy projects. I am using windows xp os. -- View this message in context: http://n4.nabble.com/groovy-code-completion-tp1585483p1586740.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: groovy code completion

2010-03-09 Thread Ravindra Mandre
Yes, these works on other groovy projects too. I am working on Ubuntu. Ravindra On Tue, Mar 9, 2010 at 8:05 PM, Christopher Snow sno...@snowconsulting.co.uk wrote: Does the plugin work with other groovy projects? What operating system are you using? The groovy plugin doesn't work

Re: groovy code completion

2010-03-09 Thread Erwan de FERRIERES
Le 09/03/2010 15:35, Christopher Snow a écrit : Does the plugin work with other groovy projects? What operating system are you using? The groovy plugin doesn't work for example with the ubuntu supplied eclipse. Ravindra Mandre wrote: Using its plug-in may solve your problem. Ravindra

Re: groovy code completion

2010-03-09 Thread Jacques Le Roux
What kind of completion do you get? How deep it is? Could youy give us some examples? Did you set something special? I use Groovy-Eclipse plugin Version: 2.0.0.xx-20100115-0900-e35-RELEASE in Eclipse 3.5.1 on XP Thanks Jacques From: Ravindra Mandre raviof...@gmail.com Yes, these works

groovy code completion

2010-03-08 Thread zhiyongcui
Why my groovy code completion is disabled in ofbiz project? The IDE I used is eclipse 3.5. -- View this message in context: http://n4.nabble.com/groovy-code-completion-tp1585483p1585483.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: groovy service code instead of minilang

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

Re: groovy service code instead of minilang

2010-02-23 Thread Abhishake Agarwal
Mini-language use. Regards, Ruth Jacopo Cappellato wrote: 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

Re: groovy service code instead of minilang

2010-02-23 Thread Adrian Crum
Maybe the next time you try to use it, you could create a list of things you would like to see changed and submit it to the community. -Adrian Ruth Hoffman wrote: 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

Re: groovy service code instead of minilang

2010-02-23 Thread Ruth Hoffman
Cappellato wrote: 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

Re: groovy service code instead of minilang

2010-02-23 Thread Ruth Hoffman
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-23 Thread Ruth Hoffman
Hi Adrian: I think I already said what I'd like changed. Perhaps you overlooked this: Please add a procedural language to the mix. PHP, Groovy, Bean Shell etc. I don't care which. Regards, Ruth Adrian Crum wrote: Maybe the next time you try to use it, you could create a list of things you

Re: groovy service code instead of minilang

2010-02-23 Thread Adrian Crum
Sorry, I meant things you would like to see changed in mini-language. -Adrian Ruth Hoffman wrote: Hi Adrian: I think I already said what I'd like changed. Perhaps you overlooked this: Please add a procedural language to the mix. PHP, Groovy, Bean Shell etc. I don't care which. Regards

Re: groovy service code instead of minilang

2010-02-23 Thread Matt Warnock
-language use. Regards, Ruth Jacopo Cappellato wrote: 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

Re: groovy service code instead of minilang

2010-02-23 Thread David E Jones
How would this be different from the java, groovy, bsh, jython, and other scripting languages supported right now by the service engine? I'll tell you what's really cool about supporting all of these languages, and for work groups allowing people to use whatever they want: the end result

Re: groovy service code instead of minilang

2010-02-23 Thread Ruth Hoffman
Hi David: How can I use BSH to write a service? I don't mean embed a BSH call inside XML, I mean can I, today write a service using BSH? If so, thats great! How do I set this up? Regards, Ruth David E Jones wrote: How would this be different from the java, groovy, bsh, jython, and other

Re: groovy service code instead of minilang

2010-02-23 Thread David E Jones
I'd recommend using groovy instead of bsh, it's a much better language and much more stable and flexible. To see the list of supported engines for the service engine look at the serviceengine.xml file. To use groovy on your service definition just use engine=groovy instead of engine=java

Re: groovy service code instead of minilang

2010-02-23 Thread Ruth Hoffman
Neat! I never knew. Thanks much. Ruth David E Jones wrote: I'd recommend using groovy instead of bsh, it's a much better language and much more stable and flexible. To see the list of supported engines for the service engine look at the serviceengine.xml file. To use groovy on your service

Re: groovy service code instead of minilang

2010-02-23 Thread Tim Ruppert
On Feb 23, 2010, at 8:57 AM, Adrian Crum wrote: Sorry, I meant things you would like to see changed in mini-language. -Adrian Ruth Hoffman wrote: Hi Adrian: I think I already said what I'd like changed. Perhaps you overlooked this: Please add a procedural language to the mix. PHP, Groovy

Re: groovy service code instead of minilang

2010-02-23 Thread Jacques Le Roux
Ruth, This explains better your feeling about minilang. You thought you had only the choice between minilang or Java (like trapped with minilang ;o) Actually it's open, we could even consider to use a Groovy DSL like suggested Chris http://docs.codehaus.org/display/GROOVY/Writing+Domain

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: groovy service code instead of minilang

2010-02-22 Thread Jacques Le Roux
groovy is not used for service code instead on minilang? Any thoughts? Many thanks, Chris

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

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 Groovy, Bean Shell or PHP

<    1   2   3   >