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
they are use to is
easier
Christopher Snow sent the following on 2/22/2010 6:58 AM:
Hi Jacques, minilang is quick, but being xml it's verbose. Groovy
would be much more concise wouldn't it - especially if a DSL was created?
Jacques Le Roux wrote:
For the same reason Java is not used. Once
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
,
Ruth
David E Jones wrote:
Simple methods are intended to be good for a few things for data mapping
operations (which is the bulk of what needs to be done in business
applications), including:
1. fewer lines than Java/groovy
2. each line less complex than equivalent Java or groovy
3. scripts
Are there any examples in OFBiz right now where you think that using Java or
groovy would be easier to write and maintain than the simple-method it is
implemented in?
-David
On Feb 22, 2010, at 10:20 AM, Ruth Hoffman wrote:
David:
IMO, what you say is true. When used as originally
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
:
Off the top of my head, the send mail seca would be much easier to follow if
it were coded in Java or groovy. I had a heck of a time figuring out why I
was getting HTML formatting errors (on perfectly valid HTML) and trying to
follow the sequence of events. In fact, I just ended up disabling
to
me... so I'm guessing you mean a different simple-method...
-David
On Feb 22, 2010, at 10:42 AM, Ruth Hoffman wrote:
Hi David:
Off the top of my head, the send mail seca would be much easier to follow if it
were coded in Java or groovy. I had a heck of a time figuring out why I
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
in Java or groovy. I had a heck of a time figuring out why I was
getting HTML formatting errors (on perfectly valid HTML) and trying to follow
the sequence of events. In fact, I just ended up disabling the service because
it just took too much time to figure out.
You asked.
Ruth
David E
records. To go beyond CRUD (and simple HTML forms to
update the database) is very cumbersome using the Mini Language.
Are we back to square one, looking for an example of a simple-method that you
think would be better in Java or groovy?
-David
Again, just my 2 cents.
Regards,
Ruth
David
to update the
database) is very cumbersome using the Mini Language.
Are we back to square one, looking for an example of a simple-method that you
think would be better in Java or groovy?
David, I don't know why I even try.
Sorry, but I am not as patient as you when it comes to explaining
it easier to read and work with if it was
written in Java or groovy, and details about that is what I think would be more
helpful to this discussion.
-David
On Feb 22, 2010, at 12:54 PM, Ruth Hoffman wrote:
David E Jones wrote:
On Feb 22, 2010, at 12:23 PM, Ruth Hoffman wrote:
David
How 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
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
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,
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
a problem, then to look at XML code
and figure out how to do the same thing. Let me put this another way. If
it takes 2-3 days to learn the mini-language, then I have to do that it
each and every time I need to use it. Java (PHP, Bean Shell, Groovy...)
takes me 5-10 minutes no matter how long I've been
On Feb 23, 2010, at 3:53 AM, Ruth Hoffman wrote:
If it takes 2-3 days to learn the mini-language, then I have to do that it
each and every time I need to use it. Java (PHP, Bean Shell, Groovy...) takes
me 5-10 minutes no matter how long I've been away from it.
This is an interesting
Hi Brett,
I had the same problem for some times. This weekend I have upgraded to Eclipse 3.5 (from 3.4.2) and Groovy plugin 2.0 (from 1.7),
it seems to have disappeared
HTH
Jacques
From: Brett Palmer brettgpal...@gmail.com
Kojo,
Does the Groovy plugin slowdown your eclipse environment
Brett, There is an option in Groovy preferences to disable groovy compiler,
I guess its related to groovy rebuilding projects because I have enabled
that option and groovy isn't rebuilding projects since then.
- Abdullah
On Wed, Feb 10, 2010 at 9:37 PM, Brett Palmer brettgpal...@gmail.comwrote
Hello Mike,
I am running Eclipse 3.5.1 with Groovy plugin version 1.5.6 without any
problem. It is important to also make sure that you are running Eclispe
in debugging mode. Are you able to set breakpoints in Java source files?
Regards,
Kojo Gambrah
Mike Voytovich wrote:
Hi,
I'm trying
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
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
Look in the appbar.ftl files - they get the app names for the main
navigation.
-Adrian
Olivier Tremblay wrote:
I'm trying to build a splash page app that would guide my users through the OFBiz functions they will need. Anyway, what I want right now is to use a groovy script to fetch the names
is to use
a groovy script to fetch the names of the other apps. Any pointers would be
greatly appreciated. Thank you!
Olivier
Are there any example services written in groovy that someone could
point me to?
Many thanks,
Chris
I've only found
/ofbiz/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy
Is this the only one? Out of interest, why aren't more services written
in groovy? It is much more concise than minilang. The only thing that
it misses in the code completion.
Cheers,
Chris
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?
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
.nabble.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
hello
how can i access field fromDate of entity instance from groovy script ?
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 missing. My
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
By default there is a timeout on this cache.
-David
On Dec 11, 2009, at 4:20 AM, Pankaj Jain wrote:
Hi
In ofbiz, when we use a groovy file , in ist call to groovy, .groovy file is
read and parsed and then we store the generated class file in a cache and
after that for every next call
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
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
I guess there is mechanism somewhere which flushes the cache in case of change
(be for groovy or everything else).
Jacques
From: Pankaj Jain pankaj.j...@lntinfotech.com
But it is taking expire time as 0, that means the component in cache will never
expire.
-Original Message-
From
Hi,
why OFBiz use library groovy-1.5.5.jar and not groovy-all-1.5.5.jar? I
need goovy-all library for jasper report with groovy language and i
don't know if there will be any version (or other) conflict with any
other library.
After quick check it seems it's ok, but it's not possible check all
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 Scott,
i agree, embedded groovy is not good idea at all. But i didn't found any
other solution that works. External libraries in same versions didn't
works for me:
java.lang.AbstractMethodError
org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:711
I respond to similar problem in another thread How to Set partyId in
request in javascript
Use groovy handler of org.ofbiz.webapp.event.GroovyEventHandler to get the
parameters in your controller request.
Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.
On Tue, Nov 10, 2009
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
Thanks Rishi Solanki. I try this.
On Mon, Nov 9, 2009 at 4:30 PM, Rishi Solanki rishisolan...@gmail.comwrote:
All delegator method has support for orderBy parameter pass the
dateVariableName on which you want the filter.
Another is EntityUtil.filterByDate() static method.
Rishi
a drop down. Value selected in the drop down will go as a form field once
you submit the form. This value can be collected in the Groovy script. I do
not see a way how you can get some thing in Groovy script without submitting
the form. If you want to do some thing on selection of drop down, you can
, 2009 at 12:12 PM, Raj Saini rajsa...@gmail.com wrote:
Hi Deepa,
I am not sure if I understood well what you are trying to achieve. You
have
a drop down. Value selected in the drop down will go as a form field once
you submit the form. This value can be collected in the Groovy script. I
do
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 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
Hi,
Can we set the value of parameter from javascript to groovy?
--
Thanks Regards
Deepa
If I am getting you right, you want to get the http parameter to groovy,
then groovy gives you access to request object,
request.getParameter(YOUR_PARAMETER) should work
On Sat, Nov 7, 2009 at 4:19 PM, Deepa Mandal deepa.v.man...@gmail.comwrote:
Hi,
Can we set the value of parameter from
Hi Abdul,
Actually i want to set the parameter from JavaScript to groovy.
On Sat, Nov 7, 2009 at 4:57 PM, Abdullah Shaikh
abdullah.sha...@viithiisys.com wrote:
If I am getting you right, you want to get the http parameter to groovy,
then groovy gives you access to request object
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
:
http://n4.nabble.com/findList-method-in-Groovy-tp278232p278232.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
, 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.
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.
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
the
square brackets.
I am not sure what and where the issue is. Any help will be appreciated.
Thanks
Rohit
--
View this message in context:
http://www.nabble.com/Need-help-with-groovy-and-ftl-tp23959205p23960058.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
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
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 Rees
return error;
should work.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com
On 5/06/2009, at 2:44 AM, Rees Watkins wrote:
Hi
I would like to return an error from a groovy script so that the
controller.xml error responce view is displayed. Is this possible?
Thank you
Rees
+Using+Practice+Application+(Hello+World..http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+%28Hello+World..
.)
Also looked at some examples in other groovy files. But nothing seems to be
written to any log files.
Vince Clark
vcl...@globalera.com
I'm trying to use methods from the Debug class to output information to log
files. That is how to do it according to this doc.
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)
Also looked at some examples in other groovy files
Never mind. Helps if you put the log message in the right groovy file.
Vince Clark
vcl...@globalera.com
(303) 493-6723
- Original Message -
From: Vince Clark vcl...@globalera.com
To: user user@ofbiz.apache.org
Sent: Tuesday, June 2, 2009 5:30:40 PM GMT -07:00 US/Canada Mountain
Hello,
I would like to learn groovy and compare it with freemarker.
If someone has something about groovy. And what are the advantages with
freemarker.
I like to have an example of groovy code.
Thks best regards.
Lahmar.
--
View this message in context:
http://www.nabble.com/groovy
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 lahmar,
You can refer following links for learning groovy and FTL.
http://freemarker.sourceforge.net/docs/index.html
http://groovy.codehaus.org/
Thanks Regards
--
Bharat Soni
lahmar wrote:
Hello,
I would like to learn groovy and compare it with freemarker.
If someone has something
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
in the PortletAndPortalPagePortlet Entity) in
log ?
Jacques
From: Bruno Busco [EMAIL PROTECTED]
Hi,
I am trying to sort by lastUpdatedStamp in a groovy file but I get an error:
My groovy file is:
// Get all Portlets located on the selected PortalPage
orderBy = [columnNum, rowNum, lastUpdatedStamp];
portletList
Hi,
I am trying to sort by lastUpdatedStamp in a groovy file but I get an error:
My groovy file is:
// Get all Portlets located on the selected PortalPage
orderBy = [columnNum, rowNum, lastUpdatedStamp];
portletList = delegator.findList(PortletAndPortalPagePortlet,
EntityCondition.makeCondition
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
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
.
On Oct 10, 2008, at 5:45 PM, Scott Gray wrote:
Hi Sumit
Why can't you just use groovy before you get to the template like we
do everywhere else? Unless there is a special reason to do otherwise
we shouldn't be processing data in the templates just formatting it.
Regards
Scott
2008/10/11 Sumit
related data.
The process I defined in mail is works fine for me. But I am not sure how
feasible to use it in that way.
On Oct 10, 2008, at 5:45 PM, Scott Gray wrote:
Hi Sumit
Why can't you just use groovy before you get to the template like we
do everywhere else? Unless
not
sure how
feasible to use it in that way.
On Oct 10, 2008, at 5:45 PM, Scott Gray wrote:
Hi Sumit
Why can't you just use groovy before you get to the template like we
do everywhere else? Unless there is a special reason to do
otherwise
we shouldn't be processing data in the templates
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
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
gets sent from service (OrderServices.java) and yet the groovy
script in OrderStatus uses request object without any errors. So it seems
that someone is passing request object explicity as bodyParameter but I cant
find it.
Joe Eckard wrote:
Check the populateContextForRequest method in /framework
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
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
/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
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
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
should new mini language use groovy, or continue with bsh.
call-bsh![CDATA[
HttpHost = conn.getURL().getHost();
return org.ofbiz.base.util.UtilMisc.toMap(HttpHost, HttpHost);
]]/call-bsh
We have planned to put groovy support in minilang but for the moment only bsh
works...
http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr--td18462705.html
Jacques
From: BJ
thanks, and thanks you your example in google check out I am speeding up
on using only minilang.
:)
Jacques Le Roux sent the following on 8/7/2008 11:18 AM:
We have planned to put groovy support in minilang but for the moment
only bsh works...
http://www.nabble.com/Re%3A-svn-commit%3A-r676862
speeding up
on using only minilang.
:)
Jacques Le Roux sent the following on 8/7/2008 11:18 AM:
We have planned to put groovy support in minilang but for the moment
only bsh works...
http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp
the following on 8/7/2008 11:18 AM:
We have planned to put groovy support in minilang but for the moment
only bsh works...
http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr
Hi,
I have a virtual product with two variants.
If I click on the Features tab when I'm looking at the virtual product I
get:
java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
Which seems to indicate that a groovy script is being called and it
can't find a required jar
Hi David
That jar is required for Groovy itself and should be present under
framework/base/lib/scripting/asm-2.2.jar
The screen you mentioned loads fine for me on the latest trunk revision.
Regards
Scott
2008/7/14 David Johnson [EMAIL PROTECTED]:
Hi,
I have a virtual product with two
Hi,
I'm running it in Eclipse and it wasn't on te project classpath.
Thanks
Dave
Scott Gray wrote:
Hi David
That jar is required for Groovy itself and should be present under
framework/base/lib/scripting/asm-2.2.jar
The screen you mentioned loads fine for me on the latest trunk revision
I looked in last trunk revision. It's there, so I guess you should update
Jacques
From: David Johnson [EMAIL PROTECTED]
Hi,
I'm running it in Eclipse and it wasn't on te project classpath.
Thanks
Dave
Scott Gray wrote:
Hi David
That jar is required for Groovy itself and should be present
Hello ,
Can we use the Auto Completion Feature on the Java Class Methods in Groovy
files ?
Suppose I want to call the getPartyName of PartyHelper.java class.
So If I import the package by import org.ofbiz.party.party.*; in my
*.groovy file then
How can I enable auto completion feature
be smarter but at the
minute it seems not to be.
-David
On Jun 2, 2008, at 4:52 AM, Alex D. Fleming wrote:
Hello ,
Can we use the Auto Completion Feature on the Java Class Methods in
Groovy
files ?
Suppose I want to call the getPartyName of PartyHelper.java class.
So If I import
On Jun 2, 2008, at 4:52 AM, Alex D. Fleming wrote:
Hello ,
Can we use the Auto Completion Feature on the Java Class Methods in Groovy
files ?
Suppose I want to call the getPartyName of PartyHelper.java class.
So If I import the package by import org.ofbiz.party.party.*; in my
*.groovy
http://www.nabble.com/java-1.5-feature-usage-question-tf4624029.html#a13226647
Jacques
- Message d'origine -
De : Ján Valkovič
A : user@ofbiz.apache.org
Envoyé : vendredi 30 novembre 2007 10:20
Objet : Groovy
Hi,
how can i use groovy in ofbiz? are there any examples
Hi,
how can i use groovy in ofbiz? are there any examples?
Thanks
ya
201 - 298 of 298 matches
Mail list logo