why not store the assets in a database, and write the image direct as raw?
----- Original Message ---- From: Brian Long <[EMAIL PROTECTED]> To: Tapestry users <users@tapestry.apache.org> Sent: Wednesday, 29 November, 2006 10:51:01 AM Subject: dynamic image assets? Hi, I'm sure there's a simple solution to this problem, but I've yet to figure out just what it is! I have an image associated with each subscriber that registers with my application, and on login I'd like to show them their picture along with their subscriber details. I know I can add an asset to the .page and have the Image component pick this up and display it <asset name="subscriber" path="/tmp/subscriber.gif" /> <component id="subscriberImage" type="Image"> <binding name="image" value="getAsset('subscriber')"> </component> The problem with this is that if I have 1000 subscribers, I need 1000 assets in my .page. I would like to store the image location as a property of my subscriber data object and retrieve the asset like this: <component id="subscriberImage" type="Image"> <binding name="image" value="getAsset('ognl:subscriber.pathToImage ')"> </component> Unfortunately, tapestry won't evaluate the ognl expression in the getAsset method call, and I get an error "value for parameter image in component is null and a non-null value is required". If someone has a solution to this, I'd be interested the hear about it. Regards, Brian. ___________________________________________________________ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]