This content has been marked as final.
Show 3 replies
-
1. Re: How to open a link?
mail.micke Dec 10, 2007 2:45 PM (in response to ralf.mueller)I think you can do this in a similar way that I created a image/thumbnail generator.
What I did was write a PhaseListener, and if the URL was of the right format the PhaseListener would take over and setup the response with the right content type. After writing the data to the response you just call FacesRequest.responseComplete().
Should work.
Mike -
2. Re: How to open a link?
ralf.mueller Dec 11, 2007 4:51 AM (in response to ralf.mueller)Thanks Mike. This helped to find a solution.
I found this very usefull site and adopted this solution for me.
Works very well.
http://balusc.blogspot.com/2006/05/httpservletutil.html -
3. Re: How to open a link?
mail.micke Dec 11, 2007 5:24 AM (in response to ralf.mueller)Nice helper!
Just curious did you implement it as a PhaseListener? Or did you find another approach?