Hi Daniel,
Currently I load my (user uploaded) images using a StreamResponse as you
explained.
The pictures are shown in my webpage, but for every loaded picture the
onActivate is called.
With a result list of 15 rows per page, this is 16 times. In my onActivate I
also call my doSearch method.
S
Thanks for pointing that out Luther. I copied it from a project using an
older version of tapestry.
luther.baker wrote:
>
> Great example - similar to an example on the Wiki ...
>
> Note that 'createActionLink' was deprecated ...
>
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/ta
Great example - similar to an example on the Wiki ...
Note that 'createActionLink' was deprecated ...
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ComponentResources.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object..
.)
*Deprecated.* *Use createEventLink
Hi Peter,
I'm using nabble to post and it seems to have stripped out the img tag.
you need an img tag in your template and set the src attribute to
${imagePath}
img src="${imagePath}"
Hope this helps,
Daniel
Peter Kanze wrote:
>
> Hi Daniel,
>
> Thanks for your example. I tried this one, b
Hi Daniel,
Thanks for your example. I tried this one, but the Object onImage is never
called when the page loads.
I am using Tapestry 5.1. The code is equal to your example.
What could I do wrong?
regards,
Peter
On Thu, Mar 12, 2009 at 10:54 AM, Daniel Jones wrote:
>
> PAGE CLASS
>
> inject c
On Thu, Mar 12, 2009 at 12:05 PM, Andy Pahne wrote:
>
> That one is really nice. Thanks.
>
>
> Daniel Jones schrieb:
>
> PAGE CLASS
>>
>> inject component resources so that you can create an action link
>>@Injectprivate ComponentResources mComponentResources;
>> when the path is requested
That one is really nice. Thanks.
Daniel Jones schrieb:
PAGE CLASS
inject component resources so that you can create an action link
@Inject
private ComponentResources mComponentResources;
when the path is requested by the template, create and return an action link
public Li
PAGE CLASS
inject component resources so that you can create an action link
@Inject
private ComponentResources mComponentResources;
when the path is requested by the template, create and return an action link
public Link getImagePath() {
return mComponentResourc
Anyway you are right: exposing the full path in the html source is
certainly not a good idea.
Peter Kanze schrieb:
Hi Andy,
Thanks for adding this to Jira.
See below my code what I have produced so far. The problem is that I now see
the complete filepath in my html source ()
I don't want th
I don't know much about the details how you contribute your
FilesystemAssetFactory. Never had time to take a briefer look at
tapestry-ioc.
Please note: in the previous example the AssetFactory is injected like this:
@Inject @ClasspathProvider
private AssetFactory assetFactory;
The @Classp
Hi Andy,
Thanks for adding this to Jira.
See below my code what I have produced so far. The problem is that I now see
the complete filepath in my html source ()
I don't want the complete file url in my html source. How can I fix this.
And how do I map the html url to the file url?
The last problem
The proposed solution in the issue is a bit different. Both is possible,
I hope the developers pick up the issue and choose a nice solution.
Andy
Andy Pahne schrieb:
https://issues.apache.org/jira/browse/TAP5-567
Thiago H. de Paula Figueiredo schrieb:
On Tue, Mar 10, 2009 at 11:28 AM,
https://issues.apache.org/jira/browse/TAP5-567
Thiago H. de Paula Figueiredo schrieb:
On Tue, Mar 10, 2009 at 11:28 AM, Andy Pahne wrote:
There is a ClasspathAssetFactory and a ContextAssetFactory. A useful
addition to the framework would be a FilesystemAssetFactory. I am going to
fill
On Tue, Mar 10, 2009 at 11:28 AM, Andy Pahne wrote:
> There is a ClasspathAssetFactory and a ContextAssetFactory. A useful
> addition to the framework would be a FilesystemAssetFactory. I am going to
> fill an JIRA issue about it.
+1 to that. I guess we only have to decide if only one root direct
There is a ClasspathAssetFactory and a ContextAssetFactory. A useful
addition to the framework would be a FilesystemAssetFactory. I am going
to fill an JIRA issue about it.
The way I did it for classpath resources was very simple, see below.
Only the first two lines of renderIcon() are rele
The documentation (http://tapestry.apache.org/tapestry5/guide/assets.html)
tells me to define a new AssetFactory and contribute it to the AssetSource
service configuration.
Yes okay, but how do I implement an AssetFactory? Is there any
documentation?
What do I need to do with public Resource getRo
Oke thank you.
But how do I map between the web http:// and the file D:/ urls?
Can you give me some (pseudo) code examples how to do this?
Thanks!
Peter
On Tue, Mar 10, 2009 at 1:56 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Tue, Mar 10, 2009 at 9:51 AM, Peter Kanze
On Tue, Mar 10, 2009 at 9:51 AM, Peter Kanze wrote:
> I already searched the archive and found the question, but it is not clear
> to me.
> There are no examples in it with a dynamic path..
You'll use AssetSource for that.
--
Thiago
-
Hello
I already searched the archive and found the question, but it is not clear
to me.
There are no examples in it with a dynamic path..
On Tue, Mar 10, 2009 at 1:45 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Hi!
>
> Search this mailing list archives because this was al
Hi!
Search this mailing list archives because this was already asked here:
http://www.nabble.com/forum/Search.jtp?forum=340&local=y&query=asset+filesystem.
--
Thiago
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.o
Hello
I want to load images from the filesystem, like for example
D:/category/1/products/55/thumb.jpg
So the file path is dynamic and is based on the categoryId and the
productId.
How can I load such an image into my webpage using a Tapestry Asset?
This looks like a common usecase to me, but I c
21 matches
Mail list logo