Re: Calling simple method from another component

2009-10-03 Thread ARays

ah! amazing.. 

Many thanks.
Arays



Mridul Pathak-2 wrote:
> 
> Following code will serve your purpose:
> 
> 
>  "component://party/script/org/ofbiz/party/user/UserEvents.xml"/>
> 
> -- 
> Thanks & Regards
> Mridul Pathak
> Hotwax Media
> http://www.hotwaxmedia.com
> mridul.pat...@hotwaxmedia.com
> -
> direct: +91 - 942.592.6892
> 
> 
> On Sat, Oct 3, 2009 at 3:26 PM, ARays  wrote:
> 
>>
>> Hi,
>>
>> I am trying to extend PartyMgr application to cover a few additional
>> types
>> of uses besides Employee, Customer types, for example 'Viewer'. As just
>> have
>> created a new component called 'myapp' under hot-deploy folder and have
>> been
>> able to get the forms showing. The form submit now goes through request
>> mapping fine in controller.xml (under myapp). See snippet below
>>
>>
>>
>>> path="component://viewer/script/org/ofbiz/party/user/UserEvents.xml"
>> invoke="createViewer"/>
>>> value="viewprofile"/>
>>
>>
>>
>> "createViewer" code is on the lines similar to "createEmployee" that is
>> available in UserEvents.xml under party component.
>>
>> The trouble is createViewer method in turn needs to call
>>   
>>
>> createUser method is still under Party application and I looking to see
>> if
>> I
>> can avoid duplicating the code and directly point to the orginal
>> createUser
>> method. Tried setting up a servicedef with the full package name like
>> below
>> but no luck.
>>
>>> default-entity-name="Person"
>>location="org.ofbiz.party.party.PartyServices"
>> invoke="createUser" auth="false">
>>
>> Any pointers to what I may be missing?
>>
>> Thanks
>> Aray
>> --
>> View this message in context:
>> http://www.nabble.com/Calling-simple-method-from-another-component-tp25727271p25727271.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Calling-simple-method-from-another-component-tp25727271p25729928.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Calling simple method from another component

2009-10-03 Thread Mridul Pathak
Following code will serve your purpose:




-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
mridul.pat...@hotwaxmedia.com
-
direct: +91 - 942.592.6892


On Sat, Oct 3, 2009 at 3:26 PM, ARays  wrote:

>
> Hi,
>
> I am trying to extend PartyMgr application to cover a few additional types
> of uses besides Employee, Customer types, for example 'Viewer'. As just
> have
> created a new component called 'myapp' under hot-deploy folder and have
> been
> able to get the forms showing. The form submit now goes through request
> mapping fine in controller.xml (under myapp). See snippet below
>
>
>
> path="component://viewer/script/org/ofbiz/party/user/UserEvents.xml"
> invoke="createViewer"/>
> value="viewprofile"/>
>
>
>
> "createViewer" code is on the lines similar to "createEmployee" that is
> available in UserEvents.xml under party component.
>
> The trouble is createViewer method in turn needs to call
>   
>
> createUser method is still under Party application and I looking to see if
> I
> can avoid duplicating the code and directly point to the orginal createUser
> method. Tried setting up a servicedef with the full package name like below
> but no luck.
>
>location="org.ofbiz.party.party.PartyServices"
> invoke="createUser" auth="false">
>
> Any pointers to what I may be missing?
>
> Thanks
> Aray
> --
> View this message in context:
> http://www.nabble.com/Calling-simple-method-from-another-component-tp25727271p25727271.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


Calling simple method from another component

2009-10-03 Thread ARays

Hi, 

I am trying to extend PartyMgr application to cover a few additional types
of uses besides Employee, Customer types, for example 'Viewer'. As just have
created a new component called 'myapp' under hot-deploy folder and have been
able to get the forms showing. The form submit now goes through request
mapping fine in controller.xml (under myapp). See snippet below








"createViewer" code is on the lines similar to "createEmployee" that is
available in UserEvents.xml under party component. 

The trouble is createViewer method in turn needs to call 
   

createUser method is still under Party application and I looking to see if I
can avoid duplicating the code and directly point to the orginal createUser
method. Tried setting up a servicedef with the full package name like below
but no luck. 



Any pointers to what I may be missing? 

Thanks
Aray
-- 
View this message in context: 
http://www.nabble.com/Calling-simple-method-from-another-component-tp25727271p25727271.html
Sent from the OFBiz - User mailing list archive at Nabble.com.