Hi Paul,
if the action uses trindad PPR, <tr:statusIndicator> is what you're looking for.
You just need to include it somewhere on the page, and always when PPR is doing something, a loading icon is displayed. You can change the icon via trinidad skinning.
If no PPR is involved, it gets a bit tricky. You could use a JavaScript to display some hidden image when the button is clicked. When page loading is done, it should always be invisible.
Regards
Markus Döring
-----Ursprüngliche Nachricht-----
Von: Paul Spencer [mailto:
paulsp@...]
Gesendet: Mittwoch, 14. Mai 2008 14:54
An: MyFaces Discussion
Betreff: [TRINIDAD] How to display "Page loading..." while page is loading?
I have an action that takes a few seconds to complete. I would like the
user to see something link "Page loading..." while the action is
processing. The action loads a List from a series of database queries
and the page simply displays the list in a table. Looking at the
examples, it appears that <tr:statusIndicator"> is part of the answer.
My question is how should I do this?
Paul Spencer