Re: OFBiz Java coding question

2009-10-25 Thread Adrian Crum
: > From: Ruth Hoffman > Subject: Re: OFBiz Java coding question > To: dev@ofbiz.apache.org > Date: Saturday, October 24, 2009, 12:47 PM > Hi Scott: > That makes sense. Thanks. > Ruth > > Scott Gray wrote: > > My guess would be that they've done it for > conv

Re: OFBiz Java coding question

2009-10-24 Thread Ruth Hoffman
Hi Scott: That makes sense. Thanks. Ruth Scott Gray wrote: My guess would be that they've done it for convenience. The current service context has most of the parameters needed by a service that the code is planning on calling but some of the parameters that aren't required need to be removed

Re: OFBiz Java coding question

2009-10-24 Thread Scott Gray
My guess would be that they've done it for convenience. The current service context has most of the parameters needed by a service that the code is planning on calling but some of the parameters that aren't required need to be removed before the service can be called. An example: Service1 h

OFBiz Java coding question

2009-10-24 Thread Ruth Hoffman
Hi List: I was wondering why, under certain conditions the developer used the "remove" method to get a value from the context instead of the "get" method. For example, why do this? String webSiteId = (String) serviceContext.remove("webSiteId"); Instead of this? String webSiteId = (Stri