From: "Bilgin Ibryam" <[email protected]>
On Thu, May 12, 2011 at 2:22 PM, Mith Atul <[email protected]> wrote:
Hi
I know about that.
I need to know to access globalcontext in java ofbiz event (source)
If your event is of type service, then in your java code you have access
only to service parameters through context object.
If it is of type java event, then you have access to httpservletrequest and
httpservletresponse objects, and have to get the request data using servlet
API.
Then globalcontext, parameters, requestparameters, requestattributes,
sessionattributes... are created and populated using request data by the
framework and made available in screens for your convenience.
Yes and it was the waited answer:
> How do we do so in ofbiz java (EVENTS) .
I have added globalcontext (which is always part of context) to the list at
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=6553757
Jacques
HTH
Bilgin Ibryam
.
On Thu, May 12, 2011 at 10:39 AM, Hardik Handa <[email protected]>
wrote:
> Check deleteParty() method in PartyServices.java
>
> With path :
applications/party/src/org/ofbiz/party/party/PartyServices.java
>
> Enjoy Ofbiz.
>
> Cheers,
> Hardik Handa
>
> -----Original Message-----
> From: Mith Atul [mailto:[email protected]]
> Sent: Wednesday, May 11, 2011 7:21 PM
> To: [email protected]
> Subject: How to acesss globalContext in java
>
> Hi,
> How do u use "globalcontext".
> It can be used in GROOVY , jscript.
> How do we do so in ofbiz java (EVENTS) .
> I want to access globalcontext in a java source.
>
> thnks
>
> ::DISCLAIMER::
>
>
-----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
modification,
> distribution and / or publication of
> this message without the prior written consent of the author of this
e-mail
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
>
>
-----------------------------------------------------------------------------------------------------------------------
>