on 2004 Oct 11 10:16 AM
Hi,
I have some form and clicking submit button starts long-time consumpting function. And due this long time I need to show some information than iview is loading. How to do it in easist way?
thanks
Jiri Juranek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jiri,
because services are sowewhat "faceless components", they are sowehow predestinated for tasks like this.
Nevertheless, you will have to open another thread, so that the request/response cycle can be ended subsecond, while the application logic works in background.
This I would do within the service implementation. Just pass the input parameters and the session, so that the thread can put it's results into the session. The portal component which gets called every 3 seconds (or so) just controls if the result has been set into the session. If yes, take it and react on the result, if not, just repost the "Waiting for a result . . ." page (the one which reloads itself).
Hope it helps
Detlev
Hi Jiri,
You had a good answer, but did you forget to give points? It's a way to say "thanks".
See: <u><></u> for directions.
Click on the Yellow Star icon in each reply.
You can give:
1 - 10 pointer (solves problem, marks as answered)
2 - 6 pointers (very helpful)
Lots of 2 pointers (helpful)
This time I did it for you, but you can change it.
Cheers,
Joan (and Mark Finnern)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.