In the tacos example page, when the progress bar ends, the javascript
function
progressComplete.progressFinished is called - and it fades out the
progress bar.

You could have your own javascript function called, and it would forward
to the
listener you want.

var progressComplete = new Object();
    progressComplete.progressFinished = function(elementId) {

location.href="<span jwcid="@DirectLink" listener="listener:mylistener" 
renderer="ognl:rawRenderer"/>";
}

you'd need to add a method in your .java :
public ILinkRenderer getRawRenderer
which would return a linkrenderer that only writes the url (and not the link 
tags)

public class RawURLLinkRenderer implements ILinkRenderer {
    public void renderLink(IMarkupWriter writer,
                           IRequestCycle cycle,
                           ILinkComponent linkComponent) {
        writer.print(linkComponent.getLink(cycle).getAbsoluteURL(), true);
    }
}



Phillip Rhodes wrote:
> I posted this on the tapestry list, and someone recommended that this is a
> more appropriate forum.
>
> I have a application that uses FOP to generate PDF reports.  The process
> takes a while, so I am implementing the ajax/tacos ProgressBar example
> into my app.  I have everything figured out except for when the
> ProgressWorkerThread has completed it's job, I need to call a listener in
> a page.  My listener in the page will send out the rendered PDF document
> that the ProgressWorkerThread built.
>
> Thanks for this awesome framework with ajax!
>
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to