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
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
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
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
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
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
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 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
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
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
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
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
>>
>>
>>> 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
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
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
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
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
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
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
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
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
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
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.
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
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
I was wondering why groovy is not used for service code instead on minilang?
Any thoughts?
Many thanks,
Chris
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,
>
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
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
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
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
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
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
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
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
Are there any example services written in groovy that someone could
point me to?
Many thanks,
Chris
.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
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.
>
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
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?
ess field fromDate of entity instance from groovy script ?
>
>
>
>
>
>
hello
how can i access field fromDate of entity instance from groovy script ?
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
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
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
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
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
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
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
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
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
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
> 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
> >
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
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
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..
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
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
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
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
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
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
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
Hi,
Can we set the value of parameter from javascript to groovy?
--
Thanks & Regards
Deepa
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.
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
message in context:
http://n4.nabble.com/findList-method-in-Groovy-tp278232p278232.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
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.
>>
>
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
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.
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?
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
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
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.
>
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
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
-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
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
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
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
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
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
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
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
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
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
.
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
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 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
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
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
..
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
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
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
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
/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
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
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
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
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
201 - 300 of 312 matches
Mail list logo