Re: Multiple file uploads

2014-07-01 Thread Ilya Obshadko
You may also want to check this: https://gist.github.com/xfyre/83f82f6e5145ee041217 It's partially based on Taha's solution, but uses different and more up-to-date JS library. It doesn't support multiple file uploads 'as is', but can be easily extended by replacing 'UploadedFile value' with 'List

Re: Importing Images on FileSystem in Page Class

2014-07-01 Thread Thiago H de Paula Figueiredo
On Tue, 01 Jul 2014 17:16:57 -0300, Net Dawg wrote: Is there an example of this? Meanwhile I found this nugget in SO: http://stackoverflow.com/questions/19301034/how-to-get-the-asset-path-in-tapestry-5 The best approach I've seen (but not used, because I hate putting assets in the fil

Re: Importing Images on FileSystem in Page Class

2014-07-01 Thread Net Dawg
OK - figured it out.  Thanks, Chris, for the tip.  Here is the example (using itext for pdf):       if (StringUtils.isNotBlank(logoFile))     {      try      {       Asset logoAss = assetSource.getClasspathAsset("context:layout/images/" + StringUtils.trim

Re: Importing Images on FileSystem in Page Class

2014-07-01 Thread Net Dawg
Is there an example of this?  Meanwhile I found this nugget in SO:   http://stackoverflow.com/questions/19301034/how-to-get-the-asset-path-in-tapestry-5 On Tuesday, July 1, 2014 9:25 AM, Chris Poulsen wrote: Inject AssetSource and set up things programmatically ? -- Chris On Tue, Ju

Re: Importing Images on FileSystem in Page Class

2014-07-01 Thread Chris Poulsen
Inject AssetSource and set up things programmatically ? -- Chris On Tue, Jul 1, 2014 at 8:58 PM, Net Dawg wrote: > How can I import an image into page class (without advance knowledge of > its name)? I would like to use it to stream PDF dynamically. > > According to Assets in Component Class

Re: [5.4-beta-6] Form always produces this error: "Selected option is not listed in the model"

2014-07-01 Thread Thiago H de Paula Figueiredo
On Tue, 01 Jul 2014 15:29:41 -0300, Muhammad Gelbana wrote: Fixed. I had to implement the equals method ! I did this out of mere guessing, is this stated somewhere in the docs ? I admit I haven't been reading the docs since v5.2 may be. Writing an equals() method is something widely recomme

Importing Images on FileSystem in Page Class

2014-07-01 Thread Net Dawg
How can I import an image into page class (without advance knowledge of its name)?  I would like to use it to stream PDF dynamically.    According to Assets in Component Classes(http://tapestry.apache.org/assets.html), components learn about assets via injection. The @Inject annotation allows As

Re: [5.4-beta-6] Form always produces this error: "Selected option is not listed in the model"

2014-07-01 Thread Thiago H de Paula Figueiredo
On Tue, 01 Jul 2014 15:18:40 -0300, Muhammad Gelbana wrote: I included ** (What is this actually called ? A component ? A block ?) A component. That's why I call it the Errors component instead of , not to mention I prefer the syntax. Blocks are declared using . -- Thiago H. de Paula

Re: [5.4-beta-6] Form always produces this error: "Selected option is not listed in the model"

2014-07-01 Thread Muhammad Gelbana
Fixed. I had to implement the equals method ! I did this out of mere guessing, is this stated somewhere in the docs ? I admit I haven't been reading the docs since v5.2 may be. *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Tue, Jul 1, 2014 at 8:18 PM, Muhammad

[5.4-beta-6] Form always produces this error: "Selected option is not listed in the model"

2014-07-01 Thread Muhammad Gelbana
I found that my event-handler to handle a form's successful submit is never fired. I have a very simple form that has one text field and select component. I included ** (What is this actually called ? A component ? A block ?) to display the form's errors if they exist and I was surprised to find t

Re: tapestry.thread-pool.max-pool-size not doing anything

2014-07-01 Thread Arjan Verstoep
Yes, the default implementation is very counter-intuitive. I have invesigated once, and it was possible to 'repair' the ThreadPoolExecutor if you provide the 'right' work-queue. I don't know if you can apply this to Tapestry's ThreadPoolExecutor, but anyhow: here's how I do it: --Arjan Verstoe

Re: Multiple file uploads

2014-07-01 Thread Dragan Sahpaski
Also, The excellent tapestry-jquery file upload http://tapestry5-jquery.com/components/docsajaxupload Cheers, Dragan Sahpaski On Tue, Jul 1, 2014 at 5:02 PM, Lance Java wrote: > See Taha's post here: > http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ > On 1 Jul 2014 15:45, "squ

Re: Multiple file uploads

2014-07-01 Thread Lance Java
See Taha's post here: http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ On 1 Jul 2014 15:45, "squallmat ." wrote: > Hello, > > From what I've seen on the official Tapestry site, They're only talking > about one file about uploading. > I have a project with Tapestry 5 and I need to

Multiple file uploads

2014-07-01 Thread squallmat .
Hello, >From what I've seen on the official Tapestry site, They're only talking about one file about uploading. I have a project with Tapestry 5 and I need to upload multiple files (an amount not fixed), How can I do multiple files uploading with Tapestry 5 ? Thanks.

Re: tapestry.thread-pool.max-pool-size not doing anything

2014-07-01 Thread Lance Java
I feel the implementation is flawed. I would prefer that the pool size would increase from minimum to maximum under load to increase throughput and then revert back to the minimum when not under load. But instead, the pool size stays at minimum until the queue is full. In my opinion, the applicat

Re: tapestry.thread-pool.max-pool-size not doing anything

2014-07-01 Thread D Tim Cummings
Ok, thanks for explaining this... I think :) I had a read of the ThreadPoolExecutor javadoc. It seems to me that core-pool-size should be described as the maximum pool size before queuing. Describing it as the minimum pool size is misleading because there is no minimum. The number of threads in