Incase anyone is wondering, I eventually worked around this by using
XTile to send a value from the server that indicated when the refreshing
needed to stop. But it still seems odd that the progress bar won't do
that itself and won't call progressFinished() for an onCompleteObject.
Maybe something to do with the page being invoked as an external link in
a separate browser window?

In any case, the progress bar is very cool! Plus it doesn't seem to
flash with every refresh anymore as of FF 1.5!

Ben

-----Original Message-----
From: Ben Dotte [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 10:00 AM
To: Tapestry users
Subject: Tacos ProgressBar

I seem to be having some trouble getting the ProgressBar to refresh
itself or call progressFinished(elementId) on my onCompleteObject.
Otherwise it works just fine. I can manually force it to refresh with
this:

 

function refreshProgress()

{

            setTimeout("refreshProgress()", 3000);

            <span jwcid="@tacos:Refresh"
updateComponents="ognl:{'progressArea'}"/>

}

 

setTimeout("refreshProgress()", 3000);

 

But this isn't ideal since it keeps refreshing even after the progress
is complete, plus I still have the problem with the onCompleteObject.
djConfig is set and dojo.js is included. I can see that tacos.js,
prototype.js, etc. are included in the rendered html. There is no stack
trace or any javascript errors. Template looks like this:

 

<div jwcid="[EMAIL PROTECTED]" id="progressArea">

            <span jwcid="[EMAIL PROTECTED]:ProgressBar" truncateLength="50"
worker="ognl:orderStatusThread"/>

</div>

 

Any help would be much appreciated!

 

Ben


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to