Re: Load test with Tapestry 5.3.4-rc-7 and subtile bug/problem with ResourceStreamerImpl/ResourceChangeTrackerImpl and "If-Modified-Since" http header

2012-06-28 Thread Howard Lewis Ship
https://issues.apache.org/jira/browse/TAP5-1964 On Thu, Jun 28, 2012 at 6:22 PM, Howard Lewis Ship wrote: > Ah, reading back, I see exactly what Robert's getting at: the placeholder > value, used in production, should be limited to one-second precision. This > represents a change in 5.3 to ditch

Re: Load test with Tapestry 5.3.4-rc-7 and subtile bug/problem with ResourceStreamerImpl/ResourceChangeTrackerImpl and "If-Modified-Since" http header

2012-06-28 Thread Howard Lewis Ship
Ah, reading back, I see exactly what Robert's getting at: the placeholder value, used in production, should be limited to one-second precision. This represents a change in 5.3 to ditch all the code that checks for changes: literally, the filter responsible is not instantiated in production mode, an

Re: Load test with Tapestry 5.3.4-rc-7 and subtile bug/problem with ResourceStreamerImpl/ResourceChangeTrackerImpl and "If-Modified-Since" http header

2012-06-28 Thread Howard Lewis Ship
Robert is right on this one; there's code elsewhere to uses the URLChangeTracker (the core of ResourceChangeTracker) at second (not millisecond) precision, for this exact scenario ... I suspect something is slightly out of wack for it to come back as it has. On Thu, Jun 28, 2012 at 4:43 PM, Rober

Re: Tapestry usage questions

2012-06-28 Thread Pham Hoang Tien
Thank Thiago so much, I understood this issue. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-usage-questions-tp5714141p5714177.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Load test with Tapestry 5.3.4-rc-7 and subtile bug/problem with ResourceStreamerImpl/ResourceChangeTrackerImpl and "If-Modified-Since" http header

2012-06-28 Thread Robert Lentz
Hi Thiago, well I don't have jetty available atm, but how would jetty or any other java date parser parse a string date including seconds but without milliseconds provided to a long milliseconds value If-Modified-Since Thu, 28 Jun 2012 22:32:41 GMT I assume the millis range 000-999 must be igno

Re: Load test with Tapestry 5.3.4-rc-7 and subtile bug/problem with ResourceStreamerImpl/ResourceChangeTrackerImpl and "If-Modified-Since" http header

2012-06-28 Thread Thiago H de Paula Figueiredo
On Thu, 28 Jun 2012 19:38:52 -0300, Robert Lentz wrote: Hi All, Hi! The header "If-Modified-Since " which will be parse by Tomcat's FastHttpDateFormat.parseDate(..) method to a long, when called ifModifiedSince = request.getDateHeader(IF_MODIFIED_SINCE_HEADER). During this parsing any milli

Re: jQuery file does not exist when deployed on Tomcat?

2012-06-28 Thread filiprd
Hi Robert, You were right, I renamed the file and the app works very well on the server now. Thanks a lot. Cheers, Filip On Jun 28, 2012 1:53 AM, "Filip Radulovic" wrote: > Hi Robert, > > Thanks a lot for the reply. You are right, the name of the file I > reference in the class is different tha

Load test with Tapestry 5.3.4-rc-7 and subtile bug/problem with ResourceStreamerImpl/ResourceChangeTrackerImpl and "If-Modified-Since" http header

2012-06-28 Thread Robert Lentz
Hi All, we are currently heavy load testing Tapestry 5.3.4-rc-7 in production mode with Tomcat 6.0.35, so far it looks pretty good, but sometimes (mostly) during a test series we noticed unnecessary repeatly high number of assets requests with a http status code "200" instead of the expected "304

Re: How to know when an Alert is dismissed

2012-06-28 Thread Matías Blasi
Thank you again Lance! Thats exactly what I need. Regards, Matias. On Wed, Jun 27, 2012 at 11:34 PM, Matías Blasi wrote: > Thank you Lance! > > This seems to be useful, but as far as I understand, it couldn't be > possible to handle single Alert dismission, right? > > Regards, > Matias. > > >

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Christian Riedel
@Howard: Ok, I see still one problem with 2.4.7. The 'use strict'; hint is causing warnings/erros in the logs. The app is working fine but maybe you're right :-/ Maybe it's worth putting some into a google closure integration? Am 28.06.2012 um 20:27 schrieb Howard Lewis Ship: > I've been hav

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Lenny Primak
I've been running in production for a while, with a combined "jarjar"-combined yuicompressor, rhino and tapestry-yuicompressor with no problems for months now. I was the only viable solution I could find with the duplication of libraries and the "customized" rhino library problem that yuicompresso

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Howard Lewis Ship
I've been having problems with even with YUICompressor 2.4.7 in a production app. On Thu, Jun 28, 2012 at 10:05 AM, Jochen Frey wrote: > +1 for the YUI compressor. It really looks broken in production > environments, and it's an easy fix. > > On Jun 28, 2012, at 7:51 AM, Christian Riedel wrote:

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Jochen Frey
+1 for the YUI compressor. It really looks broken in production environments, and it's an easy fix. On Jun 28, 2012, at 7:51 AM, Christian Riedel wrote: > Ok, one thing could also be quickly done: upgrading the yuicompressor lib to > 2.4.7 like suggested in TAP5-1729. > Minification/Resource c

Re: Tapestry app live console

2012-06-28 Thread Howard Lewis Ship
On Thu, Jun 28, 2012 at 5:29 AM, Lance Java wrote: > Tapestry IOC configuration happens once, when the app is started. It > determines the symbols, constructs services and wires them all together. > After that, Tapestry IOC's job is done and all of the services are acting > upon the config they we

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Christian Riedel
Ok, one thing could also be quickly done: upgrading the yuicompressor lib to 2.4.7 like suggested in TAP5-1729. Minification/Resource combination with tapestry-yuicompressor is really broken without that and it's quite easy to fix. https://issues.apache.org/jira/browse/TAP5-1729 Am 28.06.2012

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Luca Menegus
Hi, can someone fix TAP5-1926 and have a look at the problem I reported on BeanEditor and BeanValidation [1]? And yes, Everything's stable with rc-7! [1] http://tapestry.1045711.n5.nabble.com/BeanEditor-should-always-provide-a-new-BeanValidationContext-JSR-303-tp5713975.html - Original

Re: Tapestry 5.3.4-rc-7

2012-06-28 Thread Christian Riedel
Everything's stable with rc-7! I'd +1 a vote on this release. Am 25.06.2012 um 19:44 schrieb Howard Lewis Ship: > I've just uploaded Tapestry 5.3.4-rc-7. Key improvements: > > * More (minor) speed improvements > * TAP5-1873: JavaScript execution exception is not logged > * Fixes the Hibernate

Re: Tapestry app live console

2012-06-28 Thread Lance Java
Tapestry IOC configuration happens once, when the app is started. It determines the symbols, constructs services and wires them all together. After that, Tapestry IOC's job is done and all of the services are acting upon the config they were provided during construction after that. If you want to

Re: How to access components inside layout from page using the layout ?

2012-06-28 Thread Thiago H de Paula Figueiredo
On Thu, 28 Jun 2012 06:56:23 -0300, ffred wrote: Hello, Hi! But now that i've put it directly in the .tml of my layout, it just doesn't work anymore and ends logically with something like "FeedBack is not present in the component template". That's correct. A component instance belongs

Re: Tapestry usage questions

2012-06-28 Thread Thiago H de Paula Figueiredo
On Thu, 28 Jun 2012 06:31:25 -0300, Pham Hoang Tien wrote: Hi every one, Hi! I am learning Tapestry5(tapestry core 5.1.0.5), Why are you learning an old version? about any navigation issues". when I run the application, I make and recorded one error into my form in onValidate() event

Re: Same page secured and unsecured

2012-06-28 Thread Thiago H de Paula Figueiredo
On Thu, 28 Jun 2012 03:52:24 -0300, Henrik von Schlanbusch wrote: Hi Hi! Is it possible to have the same page secured and not secured? I have a page now that need to be accessed via https. Consequently I have annotated it with @Secure. You misuderstood @Secure. You don't need it in a pa

Re: Tapestry app live console

2012-06-28 Thread Alex Kotchnev
Right - exposing the configurable values via JMX could work for the "configuration" aspect of such a console. I haven't worked w/ JMX enough, but it sounds like a lot of complication to add on top of the existing configuration system via symbols (e.g. it seems that I would need to add a jmx propert

Re: Tapestry app live console

2012-06-28 Thread Lance Java
This sounds a bit like JMX, would publishing your services to JMX and editing via the JMX console solve your problems? If you'd still like to have the full power of a scripting language (eg bsh) at your fingertips, you could @Inject the ObjectLocator and make it available in the bsh context. From

Re: How to access components inside layout from page using the layout ?

2012-06-28 Thread Taha Siddiqi
Hi You can expose message as a parameter for component feedback. You can then use @Component#publishParameters in the Layout component to publish the message parameter. In Feedback @Parameter private String message; In layout @Component(publishParameters = "feedback") private Feedback feedb

Tapestry app live console

2012-06-28 Thread Alex Kotchnev
I was wondering how people in the Tapestry community approach this and if you have any tips on how to deal with this. In the last couple of years, I've worked on a couple of Grails projects. One very useful aspect of running a Grails app has been the Console plugin ( http://grails.org/plugin/cons

Re: Tapestry usage questions

2012-06-28 Thread Taha Siddiqi
Hi On form submission, onSubmit is called after both onSuccess and onFailure. You should use onFailure to handle a failure and onSuccess to handle success. In case there is a common logic in both cases to be executed at the end, only in that case, you should use onSubmit. regards Taha On Jun

How to access components inside layout from page using the layout ?

2012-06-28 Thread ffred
Hello, I build a common page layout class which contains the html skeleton and a few common components (navbar, ...) and one of them is dedicated to client feedback. As it was directly in the .tml of my page itself, i simply could have done something like : @Component private Feedback feedback ;

Re: Can not get the Upload's value in ajax submit

2012-06-28 Thread Taha Siddiqi
Hi Tapestry upload component does not support ajax. Take a look at http://tapestry5-jquery.com/components/docsajaxupload regards Taha On Jun 28, 2012, at 1:30 PM, dick_hu wrote: > > public class UploadPage{ > > @Property > private UploadedFile file; > > @InjectComponent >

Can not get the Upload's value in ajax submit

2012-06-28 Thread dick_hu
public class UploadPage{ @Property private UploadedFile file; @InjectComponent private Zone zone; Object onSuccess() { System.err.println(file); return zone; } } when I click the submit button,I can't get

Re: How to know when an Alert is dismissed

2012-06-28 Thread Lance Java
If you use a persistant duration (eg Duration.UNTIL_DISMISSED) then tapestry will send ajax requests back to the server when alerts are dismissed. Tapestry will call AlertStorage.dismiss(long id) on the serverside. You will need to plugin your own AlertStorage implementation to perform your own lo