So what do you mean by letting the page to render the image? Do you mean
that every page will have the two functions above?? And what the poster
component needs to do then??

instead of having a component providing the image you could have a page:


public class Preview {
        
        public StreamResponse onActivate(Object[] context) {
                ...

                return myImageStreamResponse;
        }
}

and instead of rendering an actionlink you could use a pagelink:

public Link getUserPosterImageLink() {
        return resources.createPageLink("Preview", false,
                        new Object[] {userPosterImageFilename});
}


so the url for the image will always be /myapp/preview/userPosterImageFilename.

hope this helps,
harald

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

Reply via email to