Author |
Message |
18/06/2012 11:48:32
|
bthalheim
Power User
Joined: 05/04/2012 11:45:24
Messages: 72
Offline
|
Hi,
for my own interest I'd like to ask the following questions: Why is the Callback in CLIENTMETHODCALLER class-based? Couldn't it be instance-based, too?
The reason why I'm asking this, is the consequence of class-based callback that you need a static (global) field/method to communicate messages, because the Class which implements ICLIENTMETHODCALLERTarget is instantiated by the framework needs to send somehow messages somewhere. This works, but feels weird to me.
Regards,
Björn
|
|
|
18/06/2012 12:13:01
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
I am not yet sure how to do it in a different way - there is no naming service or "Spring-like-framework" available on client side...
Do I misunderstand something?
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
18/06/2012 13:02:46
|
bthalheim
Power User
Joined: 05/04/2012 11:45:24
Messages: 72
Offline
|
I think you understood me very well even though my question was probably ambigious.
So basically, it is not possible to adapt the PageBrowser to pass in an instance of ICLIENTMETHODCALLERTarget to use for callback (which I would call then instance-based callback), because in the JSP, this callback instance simply cannot be used.
Unfortunately, I don't know very much about JSP, otherwise I could probably easier understand, why things are done the way they are done. If I understand you right, it's simply because this is the only way it could work.
Thanks,
Björn
|
|
|
18/06/2012 13:26:23
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
...yes, please carefully pay attentions that the CLIENTMETHODCALLER is some logic running on client side (for interface purpose) and is not aware of any JSP issues on server side...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|