Hi T,
okay, I expected that. I did not take a look inside the implementation
deeply, but I think it´s because parts are loaded via script loader,
right ?
There are not too many events that precede these calls and I am able
get an overview, so the second one will be my solution.
Thanks a lot !
Rob.
>>> thron7 <[email protected]> 4/28/2011 3:12 >>>
Rob,
part loading, by its very nature, is asynchronous as it relies on async
browser actions. Changing this would require a completely different way
of loading parts. Synchronous loading would also impede the user
experience as the app would be "freezing" for the time the part is
loaded.
But if I get it right you already found the answer. Do the part loading
at some earlier point in time (e.g. when the user is opening a related
menu/dialog/etc.), so that the service class is in place before your
code gets to the point where it wants to call the "getMethod". The
crucial point is just to identify the event(s) that precede this call,
and can be processed in due time.
HTH,
T.
On 04/28/2011 11:50 AM, Robert Nimax wrote:
> Hi all,
> maybe it sounds strange, but : Is there a way to load a part
synchronously ?
> Background: We manage instances of some service classes by a specifc
> managemant class. So there a methods like
> managementClass.getServiceClass(). Now we would like to load the code
of
> these class on demand by using the part loading mechanism. This is
not
> really a problem, because part loading works great for us, but the
code
> which calles these mentioned "getMethods" expects a synchronous
> behaviour meaning to get the return value directly. So we want to
> integrate the part loading at the central "getMethods" and not at
every
> piece code that is calling a "getMethod".
> Thanks,
> Rob.
>
>
>
>
------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel