Re: Tapestry 5 - cache issue when accessed via proxy

2011-02-20 Thread Martin Strand
If you want to use the exact same URL to serve different content, you'll need to make sure the response is never cached by the client. Add appropriate HTTP headers to the response: @Inject private Response response; void onActivate(...) { response.setHeader("Cache-Control", "no-cache"); re

Re: How to pass parameters from a Page to another Page in java code?

2011-02-20 Thread Taha Hafeez
On Mon, Feb 21, 2011 at 9:50 AM, leon wrote: > Hi All, > Hi > I know that we can pass a parameter through context attribute of tag in > template, but how to achieve it in java code? like this: > > public class Edit { >@Property >@Autowired >private Employee employee; > >@Inject

How to pass parameters from a Page to another Page in java code?

2011-02-20 Thread leon
Hi All, I know that we can pass a parameter through context attribute of tag in template, but how to achieve it in java code? like this: public class Edit { @Property @Autowired private Employee employee; @InjectPage private View view; @Log Object onSuccess() {

Re: Tapestry 5 - cache issue when accessed via proxy

2011-02-20 Thread sunmoor007
Hi Richard Thanks for your response. I dont really suspect the database part here because it works fine without proxy server. I will take a look at the server/proxy logs. That should give some hint. Will keep you guys updated. Thanks Sundar -- View this message in context: http://tapestry.10

Re: Tapestry 5 - cache issue when accessed via proxy

2011-02-20 Thread sunmoor007
Hi Josh Thanks for your response. You're right. We dont have the search parameter in the URL but wondering how does it work in a scenario where there no proxy server. I have seen an option disableCaching. If i enable that, will it work. Considering the option you mentioned, am guessing if we ca

Re: RequestFilter not called (sometimes)

2011-02-20 Thread Donny Nadolny
Hi Thiago, I don't think that fully explains the behavior I'm seeing - the request is always a 304, but in the first trial of 3 requests the request filter ran each time, in the second trial (after killing and restarting jetty) it never ran. Again, this is only for static files - for pages it woul

Re: RequestFilter not called (sometimes)

2011-02-20 Thread Thiago H. de Paula Figueiredo
On Sat, 19 Feb 2011 14:50:03 -0200, Donny Nadolny wrote: It's making the request each time (and getting a 304: not modified). So your RequestFilter wasn't invoked because the request wasn't really executed (i.e. processed again). This is part of HTTP: browsers can ask for an URL to be f

Re: Default Ordering for BeanEditForm

2011-02-20 Thread Mark
On Sun, Feb 20, 2011 at 9:33 AM, Ulrich Stärk wrote: > I'm just guessing, but Tapestry might reorder accessor methods alphabetically > when enhancing the > page class. Hm. I'm also seeing this behavior on Java Beans now if they implement an interface and are Injected into the page. Should I fil

Re: Tapestry 5.1.0.5 and HTML 5 Doctype

2011-02-20 Thread Christian Riedel
Hi François, the central template parser class is org.apache.tapestry5.internal.services.SaxTemplateParser. Look at the parse() method. From there you'll get to org.apache.tapestry5.internal.services.XMLTokenStream and its inner class SaxHandler. You'll have to patch somewhere in there, I thi

Re: Default Ordering for BeanEditForm

2011-02-20 Thread Ulrich Stärk
I'm just guessing, but Tapestry might reorder accessor methods alphabetically when enhancing the page class. Uli On 20.02.2011 15:38, Mark wrote: > On Sun, Feb 20, 2011 at 5:32 AM, Ulrich Stärk wrote: >> Use BeanEditForms reorder property. The argument is a comma-separated list >> of property

Re: Re: Tapestry 5.1.0.5 and HTML 5 Doctype

2011-02-20 Thread François Facon
I use nille's trick on Tapestr5-jquery-mobile http://bit.ly/fBNNzi. As excepted, I have now the right doctype for html5 but I still not able to use HTML entities. I did not get the time to look how tapestry 5.2 sax parser works. What is the best class entry point to get into tapestry's parser? Reg

Re: Default Ordering for BeanEditForm

2011-02-20 Thread Mark
On Sun, Feb 20, 2011 at 5:32 AM, Ulrich Stärk wrote: > Use BeanEditForms reorder property. The argument is a comma-separated list of > property names that > will be displayed in the given order. Omitted properties will be appended > automatically to this > list, in alphabetical order. I know I

Re: Configuration Data

2011-02-20 Thread Mark
On Sun, Feb 20, 2011 at 6:34 AM, Vangel V. Ajanovski wrote: > If you already use a database in the project and if the project is depending > on the operation of the database, than I would say that there is no reason > that is sufficient to justify the use of a property file beside the > database.

Re: Configuration Data

2011-02-20 Thread Mark
On Sun, Feb 20, 2011 at 5:34 AM, Ulrich Stärk wrote: > There is a SymbolProvider for properties files in the non-public parts of the > API. Have a look at that. I'm using those in a few places where I need to set a value once before the app is started. However, I was wanting something that woul

Re: Configuration Data

2011-02-20 Thread Vangel V. Ajanovski
On 19.02.2011 16:36, Mark wrote: I have an application that requires a great deal of configuration data after the app is running and needs to be configurable by the end user from within the application This includes things like Facebook admin id, Twitter account info, Mailchimp api key, etc. So

Re: Configuration Data

2011-02-20 Thread Ulrich Stärk
There is a SymbolProvider for properties files in the non-public parts of the API. Have a look at that. Uli On 19.02.2011 16:36, Mark wrote: > I have an application that requires a great deal of configuration data > after the app is running and needs to be configurable by the end user > from wit

Re: Default Ordering for BeanEditForm

2011-02-20 Thread Ulrich Stärk
Use BeanEditForms reorder property. The argument is a comma-separated list of property names that will be displayed in the given order. Omitted properties will be appended automatically to this list, in alphabetical order. Uli On 19.02.2011 23:33, Mark wrote: > I have a configuration page that