Re: Displaying image on T5 page

2008-07-10 Thread Sven Homburg
add to your page template:

img src=${asset:context:assets/images/mychart.jpg}/

further informations you find here
http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html

2008/7/10 Yeeswara Nadapana (HCL Financial Services) 
[EMAIL PROTECTED]:


 Hi,



 I am new to Tapestry. Using Tapestry 5.0.10 with my application. I need
 to display a chart image on my application using dynamic data. I am
 using JFreeChart for that. But, I couldn't get the way to display the
 image on my page.



 I have to display the image while rendering the page, not as an
 ActionLink. Can anyone help with this?





 Regards,

 Yeeswar





 DISCLAIMER:

 ---
 The contents of this e-mail and any attachment(s) are confidential and
 intended for the named recipient(s) only.
 It shall not attach any liability on the originator or HCL or its
 affiliates. Any views or opinions presented in
 this email are solely those of the author and may not necessarily reflect
 the opinions of HCL or its affiliates.
 Any form of reproduction, dissemination, copying, disclosure, modification,
 distribution and / or publication of
 this message without the prior written consent of the author of this e-mail
 is strictly prohibited. If you have
 received this email in error please delete it and notify the sender
 immediately. Before opening any mail and
 attachments please check them for viruses and defect.

 ---




-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


Re: Displaying image on T5 page

2008-07-10 Thread Lance Java
This should help
http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage

2008/7/10 Yeeswara Nadapana (HCL Financial Services) 
[EMAIL PROTECTED]:


 Hi,



 I am new to Tapestry. Using Tapestry 5.0.10 with my application. I need
 to display a chart image on my application using dynamic data. I am
 using JFreeChart for that. But, I couldn't get the way to display the
 image on my page.



 I have to display the image while rendering the page, not as an
 ActionLink. Can anyone help with this?





 Regards,

 Yeeswar





 DISCLAIMER:

 ---
 The contents of this e-mail and any attachment(s) are confidential and
 intended for the named recipient(s) only.
 It shall not attach any liability on the originator or HCL or its
 affiliates. Any views or opinions presented in
 this email are solely those of the author and may not necessarily reflect
 the opinions of HCL or its affiliates.
 Any form of reproduction, dissemination, copying, disclosure, modification,
 distribution and / or publication of
 this message without the prior written consent of the author of this e-mail
 is strictly prohibited. If you have
 received this email in error please delete it and notify the sender
 immediately. Before opening any mail and
 attachments please check them for viruses and defect.

 ---


RE: Displaying image on T5 page

2008-07-10 Thread Yeeswara Nadapana (HCL Financial Services)
Hi Sven,

This will only work when the mychart.jpg already exists at that
specified path. But, as per my requirement I have to generate the JPG
dynamically and show it on the page.

I got a reference at
http://wiki.apache.org/tapestry/Tapestry5HowToCreateASimpleGraphComponen
t

But, it doesn't help much with my requirement.

Thanks,
Yeeswar.

-Original Message-
From: Sven Homburg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 6:09 PM
To: Tapestry users
Subject: Re: Displaying image on T5 page

add to your page template:

img src=${asset:context:assets/images/mychart.jpg}/

further informations you find here
http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html

2008/7/10 Yeeswara Nadapana (HCL Financial Services) 
[EMAIL PROTECTED]:


 Hi,



 I am new to Tapestry. Using Tapestry 5.0.10 with my application. I
need
 to display a chart image on my application using dynamic data. I am
 using JFreeChart for that. But, I couldn't get the way to display the
 image on my page.



 I have to display the image while rendering the page, not as an
 ActionLink. Can anyone help with this?





 Regards,

 Yeeswar





 DISCLAIMER:



---
 The contents of this e-mail and any attachment(s) are confidential and
 intended for the named recipient(s) only.
 It shall not attach any liability on the originator or HCL or its
 affiliates. Any views or opinions presented in
 this email are solely those of the author and may not necessarily
reflect
 the opinions of HCL or its affiliates.
 Any form of reproduction, dissemination, copying, disclosure,
modification,
 distribution and / or publication of
 this message without the prior written consent of the author of this
e-mail
 is strictly prohibited. If you have
 received this email in error please delete it and notify the sender
 immediately. Before opening any mail and
 attachments please check them for viruses and defect.



---




-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com

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



Re: Displaying image on T5 page

2008-07-10 Thread Massimo Lusetti
On Thu, Jul 10, 2008 at 2:45 PM, Yeeswara Nadapana (HCL Financial
Services) [EMAIL PROTECTED] wrote:

 But, it doesn't help much with my requirement.

Have you tried to help yourself and search through the ML's archive... at least?


-- 
Massimo
http://meridio.blogspot.com

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



Re: Displaying image on T5 page

2008-07-10 Thread Robert Zeigler

Hi Yeeswar,

I recently had exactly the same requirement, and solved it in the same  
way referenced in the wiki page.
So then I rewrote my solution as a DisplayChart component, which  
takes a chart as a parameter and handles the rest of the work for you.


A few notes/comments, though:

1) In my case, the chart wasn't generated from parameters in the url,  
per se. So I initially had problems with the browser caching the chart  
image because even though the chart had changed, the url was the  
same.  I solved that issue by generating an identifier key for the  
chart that ensures that different charts get different urls.


2) I create the byte array outside of the StreamResponse.  That way I  
can set the content length (and any other properties I want) in  
prepareResponse


3)  The Wiki article uses jpeg compression.  PNG is better for charts,  
and just as easy to do with the JFreeChart API.


If you're interested in my DisplayChart code, write me off list and  
I'll send it along.


Robert

On Jul 10, 2008, at 7/107:43 AM , Lance Java wrote:


This should help
http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage

2008/7/10 Yeeswara Nadapana (HCL Financial Services) 
[EMAIL PROTECTED]:



Hi,



I am new to Tapestry. Using Tapestry 5.0.10 with my application. I  
need

to display a chart image on my application using dynamic data. I am
using JFreeChart for that. But, I couldn't get the way to display the
image on my page.



I have to display the image while rendering the page, not as an
ActionLink. Can anyone help with this?





Regards,

Yeeswar





DISCLAIMER:

---
The contents of this e-mail and any attachment(s) are confidential  
and

intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily  
reflect

the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,  
modification,

distribution and / or publication of
this message without the prior written consent of the author of  
this e-mail

is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.

---



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