Re: T5: Now to generate page with binary output

2008-04-15 Thread Josh Canfield
Take a look at the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToCreateASimpleGraphComponent Since you aren't actually going to be injecting the image bytes into the page your images are going to be loaded in a second request. You can create an action link that actually returns the image by

Re: T5: Now to generate page with binary output

2008-04-15 Thread Sven Homburg
i developed an component that genereates thumbnails of an gif/jpeg via Toolkit graphic methodes. after that the converted stream should injected into the page. 2008/4/15, Josh Canfield <[EMAIL PROTECTED]>: > > Why are you generating a binary stream during the render phase? > > > On Mon, Apr 14, 2

Re: T5: Now to generate page with binary output

2008-04-14 Thread Josh Canfield
Why are you generating a binary stream during the render phase? On Mon, Apr 14, 2008 at 3:55 PM, Sven Homburg <[EMAIL PROTECTED]> wrote: > but how do i return a binary stream, that generated at render phase. > > > 2008/3/17, Josh Canfield <[EMAIL PROTECTED]>: > > > > > You need to return a StreamR

Re: T5: Now to generate page with binary output

2008-04-14 Thread Thiago HP
On 4/14/08, Sven Homburg <[EMAIL PROTECTED]> wrote: > but how do i return a binary stream, that generated at render phase. Return your StreamResponse, just like in the wiki example cited earlier, in an onActivate() method. ;) -- Thiago ---

Re: T5: Now to generate page with binary output

2008-04-14 Thread Sven Homburg
but how do i return a binary stream, that generated at render phase. 2008/3/17, Josh Canfield <[EMAIL PROTECTED]>: > > You need to return a StreamResponse > > > http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/StreamResponse.html > > Also, check out the following for an example. >

Re: T5: Now to generate page with binary output

2008-03-17 Thread Josh Canfield
You need to return a StreamResponse http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/StreamResponse.html Also, check out the following for an example. http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile Josh On Sat, Mar 15, 2008 at 8:11 AM, Dmitry Shyshkin <

T5: Now to generate page with binary output

2008-03-15 Thread Dmitry Shyshkin
Hello, all I want to generate image by tapestry page. Follow code successfully set Content-Type and output image data, but after that exception is thrown : java.lang.RuntimeException: Page resource/Image did not generate any markup when rendered. This could be because its template file could n