manuelk
I'm new here

Servicecall from Editor Component

Jump to solution

Hello,

I try to get a custom editor working with a JTable as primary swing compononet. The JTable must be filled with data from a webservice. I need to use a FirstSpirit service-component as a proxy for the actual webservice.

Unfortunatly I do not not know  how to call a method from a service-component out of an editor-component. I hope anyone can help me and give me a simple example how to call a method of a service component.

Thanks.

Manuel

0 Kudos
1 Solution

Accepted Solutions
andre
I'm new here

we're talking about GuiEditors or Gadgets? ...which FirstSpirit-Version?

GuiEditor:

-> http://www.e-spirit.com/odfs42/access/de/espirit/firstspirit/access/Connection.html#getService%28jav...

or use this method getService(Class<T> serviceClass)

getHost().getConnection().getService(....)

--------------------

for Gadgets  (http://www.e-spirit.com/odfs42/access/de/espirit/firstspirit/access/ServicesBroker.html😞

ServicesBroker servicesBroker = SpecialistBroker.requireSpecialist(ServicesBroker.TYPE);

MyService myService = servicesBroker.getService(MyService.class);

obtain a Broker through the SwingGadgetContext<?>

-- andre

View solution in original post

0 Kudos
3 Replies
manuelk
I'm new here

Hi,

is there really nobody who has experiences in calling a service method of a custom FirstSpirit service component out of  an editor component. I really need help here and would be glad for getting assistance.

Thanks

Manuel

0 Kudos
andre
I'm new here

we're talking about GuiEditors or Gadgets? ...which FirstSpirit-Version?

GuiEditor:

-> http://www.e-spirit.com/odfs42/access/de/espirit/firstspirit/access/Connection.html#getService%28jav...

or use this method getService(Class<T> serviceClass)

getHost().getConnection().getService(....)

--------------------

for Gadgets  (http://www.e-spirit.com/odfs42/access/de/espirit/firstspirit/access/ServicesBroker.html😞

ServicesBroker servicesBroker = SpecialistBroker.requireSpecialist(ServicesBroker.TYPE);

MyService myService = servicesBroker.getService(MyService.class);

obtain a Broker through the SwingGadgetContext<?>

-- andre

0 Kudos

Hi,

i now got it work with the getService(Class<T>

method.

Thanks and regards

Manuel

0 Kudos