Hello, I'm would like to put a thumbnail image in a column of a grid (each row 
has it's own unique image).
The images are not bundled with the application, they're on another file server 
"behind" the one hosting my application.

I think I have a partial solution but it needs filling out.  So far I haven't 
found a cogent example for Tapestry5.

- Use BeanModel to add a column (in the page class) and reference the model in 
the grid  (following the "Adding Columns" example of the reference 
documentation (corelib/compontents/Grid.html):

    model= beanModelSource.create(MyObj.class, true, resources):
    model.add("thumbNail', null);

    <t:grid t:source="MyObjList" t:model="model" t:row="MyObj"...>
         <t:parameter name=thumbNailCell">
         ???
         </t/parameter>

Then I get lost.  I understand the Tapestry5HowToCreatePieChartsInAPage example 
(in the Tapestry Wiki) but it it doesn't seem to match what I want because it's 
not in a grid.  So...

How would I put the equivalent of <img src="${chart3}"/> in the <t:parameter 
tag and somehow pass the MyObj instance on that row so that my program knows 
which image file to get?

Where would I put the code to automatically render the image and return the 
InlineStreamReponse (like in Tapestry5HowToStreamAnExistingBinaryFile), in an 
onThumbNail type action listener in the page class?  This doesn't seem obvious 
to me since there is no action on the part of the user, the image should just 
be generated automatically.   Perhaps a Component class but I don't see how to 
trigger the use of that class.

Thanks for any pointers,
-Stephen

The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other then the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.


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

Reply via email to