Re: date field as 3 drop down fields

2013-04-17 Thread Bård Magnus Kvalheim
True that - learned the hard way :( Using a threadlocal is quite convenient as well. http://stackoverflow.com/questions/817856/when-and-how-should-i-use-a-threadlocal-variable http://docs.oracle.com/javase/7/docs/api/java/lang/ThreadLocal.html On Thu, Apr 18, 2013 at 12:15 AM, Lance Java wrote:

Re: date field as 3 drop down fields

2013-04-17 Thread Lance Java
Unfortunately, java.text.SimpleDateFormat is not thread safe so can't be declared as static. You'll need to use a local variable each time to be thread safe unfortunately. On 17 Apr 2013 05:06, "Jeshurun Daniel" wrote: > One more time with the links > > http://apache-tapestry-mailing-list-archive

returning StreamPageContent causes ajax error

2013-04-17 Thread Bryan Lewis
Recently I started using the StreamPageContent feature to show the user an error message without losing the original page's address. For example: Object onActivate(Policy p) { if (p == null) { return new StreamPageContent(ErrorPage.class, "Invalid item"); }

Re: Selective caching of resources

2013-04-17 Thread Nenad Nikolic
Thank you for the quick response! I was considering such an approach, implementing a separate dispatcher at first but figured it would just be too much work and tapestry already provides the features and infrastructure i need for delivering assets. I seems that i wasn't looking at the problem i nee

Re: Selective caching of resources

2013-04-17 Thread Howard Lewis Ship
Generally speaking, assets are expected to be static (that is, unchanging) and global, which is why there's so much caching going on. I would say that you should implement your own Dispatcher (contributed to the MasterDispatcher) service and just take control of this, using the same techniques you

Selective caching of resources

2013-04-17 Thread Nenad Nikolic
Hello, i'm struggling with delivering a transformed resource for each request. Here is exactly what i mean: There are two requests expected to hit the app. 1) a request containing a unique identifier and some other values as request parameters. This request will hit a dispatcher which will store

Re: Tapestry 5.4-alpha-3

2013-04-17 Thread Charlouze
I'm 100% sure that my app is not in production mode and my file is not packaged in a JAR file. As I said, it works well when I use the css file without the stack using @import. 2013/4/17 Howard Lewis Ship > It is supposed to clear its cache if there's a change to the file. I've > tested that

Re: Tapestry 5.4-alpha-3

2013-04-17 Thread Howard Lewis Ship
It is supposed to clear its cache if there's a change to the file. I've tested that manually but don't know if there's an automated test for that. There's no chance you are running in production mode, or have the file in question packaged in a JAR file? Live reload is only for files on the file

Re: Tapestry 5.4-alpha-3

2013-04-17 Thread Charlouze
I explore the code of the ExtensibleJavaScriptStack class and it calculates the asset link on first use. Maybe I can disable the checksum in URL ? 2013/4/17 Charlouze > I build my app with eclipse 3.7.2. I use the m2e plugin (1.1.0) and the > m2e-wtp (0.15.3) to configure my eclipse project. I'

Re: Long running process in onSuccess causing Life Cycle methods to rerun.

2013-04-17 Thread Dmitry Gusev
On Wed, Apr 17, 2013 at 4:43 PM, George Christman wrote: > Cezary, I would agree with your response if it didn't work perfectly fine > in my test page using the same proxy settings. Anyhow, I removed the proxy > all together and the behavior remains the same. Do you have any suggestions > in regar

Re: Long running process in onSuccess causing Life Cycle methods to rerun.

2013-04-17 Thread George Christman
Cezary, I would agree with your response if it didn't work perfectly fine in my test page using the same proxy settings. Anyhow, I removed the proxy all together and the behavior remains the same. Do you have any suggestions in regards to debugging this issue? I also agree this should be put on it

Re: Tapestry 5.4-alpha-3

2013-04-17 Thread Charlouze
I build my app with eclipse 3.7.2. I use the m2e plugin (1.1.0) and the m2e-wtp (0.15.3) to configure my eclipse project. I'm running the app using the run jetty run plugin (1.3.3). The selected jetty version is 8.1.2. I just made a small test project (only an index page with nothing but a title a

Re: Tapestry 5.4-alpha-3

2013-04-17 Thread Howard Lewis Ship
When you refresh your page, it *should* be building a new URL to the updated asset. The particulars matter here ... how exactly are you building & running the app? On Wed, Apr 17, 2013 at 9:31 AM, Charlouze wrote: > Hey everyone, > > I have some trouble with the 5.4-alpha-3. When I add some st

Re: Tapestry 5.4-alpha-3

2013-04-17 Thread Charlouze
Hey everyone, I have some trouble with the 5.4-alpha-3. When I add some stuff to my styles.css file, it get another address to access it (that is perfectly normal according to the new asset feature). The problem is that if I don't restart my application my pages tries to load my styles.css file fr

Re: Is it possible somehow to get tapestry5 service from within integration test?

2013-04-17 Thread Dmitry Gusev
https://issues.apache.org/jira/browse/TAP5-2107 On Tue, Apr 16, 2013 at 8:17 PM, Dmitry Gusev wrote: > Here's a piece of SeleniumTestCase that does what I wanted: > > private ServletContainerRunner servletContainerRunner; > > > > public Registry getRegistry() > > { > > if (se