You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kris Rasmussen <kr...@yahoo.com> on 2006/01/06 20:49:44 UTC
Why is there an engine per locale?
Can anyone explain to me why tapestry pools engines by locale? I beleive I looked into this a year or two ago but I can't seem to remember what I found and I need to know it again ;). From what I remember, all the templates are fetched from the same pool with the locale included in their multi key so I don't beleive it has anything to do with templating. Is it because property language files are stored somewhere in the engine?
Thanks,
Kris
Re: Maximum file size for Upload component
Posted by Hugo Palma <hu...@gmail.com>.
Sorry, was thinking out loud :o).......this is for the commons fileupload
class obviously....
On 13/01/06, Hugo Palma <hu...@gmail.com> wrote:
>
> Checkout the setMaxSize method in the FileUploadBase class.
> See the javadoc here http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.html#setSizeMax(long)
>
> <http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.html#setSizeMax%28long%29>
>
>
> On 13/01/06, Jimmi Dyson <ji...@lawton.co.uk> wrote:
> >
> > Does anyone know how to change the maximum file size that can be
> > uploaded?
> >
> > Can't see any way to do it. Seems that 10MB is hardcoded into
> > org.apache.tapestry.multipart.MultipartDecoderImpl.
> >
> > Any ideas?
> >
> > Thanks very much.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
Re: Maximum file size for Upload component
Posted by Hugo Palma <hu...@gmail.com>.
Checkout the setMaxSize method in the FileUploadBase class.
See the javadoc here
http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.html#setSizeMax(long)
On 13/01/06, Jimmi Dyson <ji...@lawton.co.uk> wrote:
>
> Does anyone know how to change the maximum file size that can be
> uploaded?
>
> Can't see any way to do it. Seems that 10MB is hardcoded into
> org.apache.tapestry.multipart.MultipartDecoderImpl.
>
> Any ideas?
>
> Thanks very much.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
Re: Maximum file size for Upload component
Posted by Shing Hing Man <ma...@yahoo.com>.
Have you checked out the following post from about a
month ago?
http://article.gmane.org/gmane.comp.java.tapestry.user/29717/match=spencer+crissman
Shing
--- Jimmi Dyson <ji...@lawton.co.uk> wrote:
> Does anyone know how to change the maximum file size
> that can be
> uploaded?
>
> Can't see any way to do it. Seems that 10MB is
> hardcoded into
> org.apache.tapestry.multipart.MultipartDecoderImpl.
>
> Any ideas?
>
> Thanks very much.
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Maximum file size for Upload component
Posted by Jimmi Dyson <ji...@lawton.co.uk>.
Does anyone know how to change the maximum file size that can be
uploaded?
Can't see any way to do it. Seems that 10MB is hardcoded into
org.apache.tapestry.multipart.MultipartDecoderImpl.
Any ideas?
Thanks very much.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Why is there an engine per locale?
Posted by Kris Rasmussen <kr...@yahoo.com>.
Thank you Howard. I've been developing a very large tapestry app over the last year (with tapestry 3.3) and I rewrote some of the internals of tapestry because it was not extensible enough for what I was doing.
Some of the work I did with the tapestry source was making it support multiple sites per web app, and as such I needed to separate some context and add the ability to support different page templates per site.
I was curious about the locale/engine issue because I wanted to know if I would see any benefit pooling engines per template group. However, it appears that the engines all share the same pools anyways.
You did a great job with 4.0. I think you ended up adding most of the features I originally started hacking the source for in the first place (url/form persisted properties, friendly urls, etc). I look forward to moving my app over to the new release when I have time as well as seeing the rewind cycle removed.
Kris
----- Original Message ----
From: Howard Lewis Ship <hl...@gmail.com>
To: Tapestry users <ta...@jakarta.apache.org>; Kris Rasmussen <kr...@yahoo.com>
Sent: Friday, January 06, 2006 12:12:31 PM
Subject: Re: Why is there an engine per locale?
It's something of a remanant from Tapestry 3 and earlier. At one
time, it was useful, because you would often subclass BaseEngine in a
Tapestry application. Nowadays, that's not a good solution, as you
can change behavior using HiveMind instead.
On 1/6/06, Kris Rasmussen <kr...@yahoo.com> wrote:
> Can anyone explain to me why tapestry pools engines by locale? I beleive I looked into this a year or two ago but I can't seem to remember what I found and I need to know it again ;). From what I remember, all the templates are fetched from the same pool with the locale included in their multi key so I don't beleive it has anything to do with templating. Is it because property language files are stored somewhere in the engine?
>
> Thanks,
> Kris
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Why is there an engine per locale?
Posted by Howard Lewis Ship <hl...@gmail.com>.
It's something of a remanant from Tapestry 3 and earlier. At one
time, it was useful, because you would often subclass BaseEngine in a
Tapestry application. Nowadays, that's not a good solution, as you
can change behavior using HiveMind instead.
On 1/6/06, Kris Rasmussen <kr...@yahoo.com> wrote:
> Can anyone explain to me why tapestry pools engines by locale? I beleive I looked into this a year or two ago but I can't seem to remember what I found and I need to know it again ;). From what I remember, all the templates are fetched from the same pool with the locale included in their multi key so I don't beleive it has anything to do with templating. Is it because property language files are stored somewhere in the engine?
>
> Thanks,
> Kris
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org