You're also free to make your own IAsset implementations and provide them from a getter....

  <img jwcid="@Image" image="ognl:myImage"/>

and then have a method:

        public IAsset getMyImage() {
                return new WhateverIAssetImplementationYouLike();
        }
On Apr 2, 2005, at 5:24 PM, Andreas Andreou wrote:

You can try
<img jwcid="@Any" src="ognl:imagePath">
instead of your custom GeneralImage
The Any component can prove real handy, take a look at its documentation...


Henry Chen wrote:

Hi,
I want to load links from the database, and bind with @Image component. But
this is not possible because the image property requires an IAsset type
object. This can be provided by <Context-asset> component but it only
support static path. Does Tapestry already have something that can return an
asset set during runtime from say, a database?
Currently I have to write another @GeneralImage component to do this. This
is trivial, but I think it shoiuld be a common need and there would be some
better solution. Thanks.


Henry



This electronic mail transmission contains confidential information intended
only for the person(s) named. Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message. Opinions, conclusions, and other information in this
message that do not relate to the official business of Peacock Nine LLC and
its subsidiaries shall be understood to be neither given nor endorsed by the
Company. When addressed to the clients of Peacock Nine, LLC and its
subsidiaries, any information contained in this e-mail is subject to the
terms and conditions in the governing client contracts and non disclosure
agreements.





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


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



Reply via email to