Hi,
If all you want is to show the text while the page is processing PPR, you just need to define the "busy" facet of the tr:statusIndicator component. If any of the facets is defined, none of the default icons will be displayed.
You can use a tr:outputText or something more complex inside the facet, depends on what you want to show.
Best regards,
Pedro
On Wed, May 14, 2008 at 2:26 PM, Döring Markus <
Markus.Doering@...> wrote:
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
--
Os melhores cumprimentos,
Pedro Calção