Re: real huge application with T5?!
I don't have a T5 example with that many uniques but I can say that 10,000 uniques really isn't a big deal and you should have no trouble at all supporting it. Tapestry seems quite fast overall. The bigger problem is you need to be careful with is how you design your app. PHP developers have a tendency to assume the database can hold and manage everything and they forget about the fact that it's expensive to use the database too much. Remember to use proper connection pooling, data caching and other techniques and you should be just fine. Java web-app performance in general is superb. I just finished a stateless java web app that runs on tomcat with the 1.6 VM. We load tested a single instance of it with 10,000 concurrent users via JMeter. The box was a cheap dual core box with 1 gig of RAM. Average CPU usage? Less then 5%. Code smart and it will work great. Mike - Original Message - From: "matt22" <[EMAIL PROTECTED]> To: Sent: Friday, August 17, 2007 6:41 PM Subject: T5: real huge application with T5?! Hi everyone, Is it possible to use T5 or previous tapestry for project with about 10,000 unique/day? I have been working in php a few years but last 5 years i work with java(jsp/struts/tapestry), i need to create some huge projects with visiting about 5-10-15,000 unique/day, i would like to write it in tapestry+spring+hibernate+acegi - think this is GREAT solution, but i dont know anything about performance and memory usage of hib+tapestry in huge projects. So what is better to use - PHP or JSP - more quick or - optimized hibernate+spring+tapestry great for programmer ? Does anybody know about some live apps based on tapestry, spring or hibernate with high visiting rate? -- View this message in context: http://www.nabble.com/T5%3A-real-huge-application-with-T5-%21-tf4288640.html#a12208862 Sent from the Tapestry - User mailing list archive at Nabble.com. - 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]
Re: properties file does not support UTF8
The -Dfile.encoding option doesn't always work properly, it's documented on the Java site here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4163515 Basically, it seems to work on some VMs but you really need to just make sure the file matches the encoding of the OS or specify an encoding on the stream directly. This is why pretty much everything lets you pass in an encoding when dealing with bytes. Mike - Original Message - From: "Renat Zubairov" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Sunday, July 15, 2007 10:09 AM Subject: Re: properties file does not support UTF8 Properties files do support UTF-8, you just need to encode them proper See native2ascii util from JDK or set your default Java file encoding to UTF-8 using "-Dfile.encoding=utf8" Renat On 14/07/07, sun58224 <[EMAIL PROTECTED]> wrote: 1.properties file does not support UTF8. 2.Sort BeanForms can not be changed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Renat Zubairov - 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]
Commons Logging in Tapestry
Is there a way to get commons-logging out of tapestry? I just fought with it yet again the other day. Maybe a move to something like SLF4J? Commons logging is really frustrating with it's classloader disaster always waiting in the wings. The most comprehensive set of arguments against it are found here: http://www.qos.ch/logging/classloader.jsp And more details on SLF4J here: http://www.slf4j.org/ Personally, I prefer SLF4J quite a bit but I'd be happy with pretty much anything other then commons-logging. Even many of the new Apache projects are leaving it behind. Thanks! Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic Sections on a Page
Im sorry, I don't think I explained that well at all (I was barely awake at the time). What I need is along the lines of a dynamic include in a JSP. Where the included JSP still executes as always but you are able to specify the include path itself as a variable. That's what I'm looking to accomplish. If this can be done with Block and RenderBlock, can you provide more details? Thanks! Michael -Original Message- From: "Firas Adiler" <[EMAIL PROTECTED]> Sent: Thu, September 21, 2006 12:25 pm To: "Tapestry users" Subject: RE: Dynamic Sections on a Page Hi, I think these components are well suited for this kind of job: http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/RenderBlock .html http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Block.html -Original Message- From: Mike Grundvig [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:41 PM To: Tapestry users Subject: Dynamic Sections on a Page Hi all; first off, I just wanted to express my thanks to the devs and community for making Tapestry. It's a real piece of art. Thanks! I'm working on a site that has an admin system to store advertisments. These advertisements are small HTML blocks that they want inserted into specific places inside of a page. The entire site is broken into sections and the ads are tied to all the pages in a section. I know I can make a custom component and inject my ad service into it and then use that to load the files from the file system and dump the ad HTML right into the pages but that feels very clumsy. I want the ad HTML to be valid tapestry pages in their own right so they can take advantage of all the capabilities of tapestry. Basically, Id like a component that looks something like this: Ad 1 goes here And that would go on every page with a different section id for all locations. Then it would do this internally (psuedo code, obviously): // the url for this ad might be "/ads/blah.html" (yes, I have friendly urls working) Template template = getAdService().getTemplate(adId, sectionId); template.render(); How can I get a page from the tapestry engine via the name or path or some such in a way that I can dump it into the page? Thanks in advance for any advice! Michael - 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]
Re: Porting Existing Site To Tapestry
Thanks for the exception code, that's most helpful. Where did you get it? I'd like to be able to just look this type of thing up rather then bugging everyone on the list about it. As for the site, they do want to make it more dynamic. It seems the easiest approach is to bite the bullet and get it all ported over in one shot. Additionally, site maintenence is much simpler with Tapestry, we can use components to manage navigation, basic layout, etc. rather then having 1000 navbars :) Mike - Original Message - From: "Kevin Menard" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, June 23, 2006 11:34 AM Subject: Re: Porting Existing Site To Tapestry On Fri, 23 Jun 2006 12:27:21 -0400, Michael Grundvig <[EMAIL PROTECTED]> wrote: 1) How do I capture a Tapestry error that was caused by a missing page (a 404). With friendly URLs enabled I get the nice Tapestry error page when someone uses an invalid page. I need this to go to the custom 404 page for the site. You're going to want to make something like the following contributions to HiveMind: Replacing the service with your own class that implements org.apache.tapestry.error.ExceptionPresenter. 2) Has anyone tried to port this large of a static site into Tapestry directly? 3) Anyone used a war this large before? It's my biggest by far. Out of curiosity, why are you converting a statice site to Tapestry? It seems counter-intuitive to me, unless your plan is to gradually make it more dynamic. -- Kevin - 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]
Porting Existing Site To Tapestry
Hi all; I'm a recent convert to Tapestry and love it thus far! I am about to migrate a huge static site into Tapestry. The site is http://www.unityonline.org and runs more then 1000 pages and tons of images. When packaged down into a war using Maven2, it comes out at 250 megs. Because the existing site is static and I want the migration to be painless, I'm using friendly URLs. Additionally, I've created a servlet filter that maps all directory requests to an index page (ie. http://site.com/stuff becomes http://site.com/stuff/index.html). This seems to work great and allows Tapestry to handle directory-only requests. With these two things it looks like any static site can be ported directly into Tapestry without any modifications. Now for the questions: 1) How do I capture a Tapestry error that was caused by a missing page (a 404). With friendly URLs enabled I get the nice Tapestry error page when someone uses an invalid page. I need this to go to the custom 404 page for the site. 2) Has anyone tried to port this large of a static site into Tapestry directly? 3) Anyone used a war this large before? It's my biggest by far. Thanks! Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]